method
write_spec
v2.2.1 -
Show latest stable
- Class:
Rails::GemDependency
write_spec(directory, spec)public
No documentation available.
# File railties/lib/rails/gem_dependency.rb, line 162
def write_spec(directory, spec)
# copy the gem's specification into GEMDIR/.specification so that
# we can access information about the gem on deployment systems
# without having the gem installed
File.open(spec_filename(directory), 'w') do |file|
file.puts spec.to_yaml
end
end