Method: Bundler::Source::Git#to_lock

Defined in:
lib/bundler/source/git.rb

#to_lockObject

[View source]

53
54
55
56
57
58
59
60
61
62
# File 'lib/bundler/source/git.rb', line 53

def to_lock
  out = String.new("GIT\n")
  out << "  remote: #{@uri}\n"
  out << "  revision: #{revision}\n"
  %w[ref branch tag submodules].each do |opt|
    out << "  #{opt}: #{options[opt]}\n" if options[opt]
  end
  out << "  glob: #{@glob}\n" unless default_glob?
  out << "  specs:\n"
end