Method: Bundler::Source::Rubygems#initialize
- Defined in:
- lib/bundler/source/rubygems.rb
permalink #initialize(options = {}) ⇒ Rubygems
Returns a new instance of Rubygems.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/bundler/source/rubygems.rb', line 15 def initialize( = {}) @options = @remotes = [] @dependency_names = [] @allow_remote = false @allow_cached = false @allow_local = ["allow_local"] || false @prefer_local = false @checksum_store = Checksum::Store.new Array(["remotes"]).reverse_each {|r| add_remote(r) } @lockfile_remotes = @remotes if ["from_lockfile"] end |