instance method write_spec

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.2.3

Signature

write_spec(directory, spec)

No documentation comment.

Parameters

directory req
spec req
Source
# File railties/lib/rails/gem_dependency.rb, line 163
    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

Defined in railties/lib/rails/gem_dependency.rb line 163 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::GemDependency

Type at least 2 characters to search.

↑↓ navigate · open · esc close