Method: Gem::RequestSet::Lockfile#write

Defined in:
lib/rubygems/request_set/lockfile.rb

#writeObject

Writes the lock file alongside the gem dependencies file



220
221
222
223
224
225
226
# File 'lib/rubygems/request_set/lockfile.rb', line 220

def write
  content = to_s

  File.open "#{@gem_deps_file}.lock", "w" do |io|
    io.write content
  end
end