Method: Bundler::SourceList#add_rubygems_source

Defined in:
lib/bundler/source_list.rb

#add_rubygems_source(options = {}) ⇒ Object



60
61
62
63
64
65
# File 'lib/bundler/source_list.rb', line 60

def add_rubygems_source(options = {})
  new_source = Source::Rubygems.new(options)
  return @global_rubygems_source if @global_rubygems_source == new_source

  add_source_to_list new_source, @rubygems_sources
end