Method: Bundler::Source::Rubygems#initialize

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

#initialize(options = {}) ⇒ Rubygems

Returns a new instance of Rubygems.

[View source]

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 = {})
  @options = options
  @remotes = []
  @dependency_names = []
  @allow_remote = false
  @allow_cached = false
  @allow_local = options["allow_local"] || false
  @prefer_local = false
  @checksum_store = Checksum::Store.new

  Array(options["remotes"]).reverse_each {|r| add_remote(r) }

  @lockfile_remotes = @remotes if options["from_lockfile"]
end