123456789_123456789_123456789_123456789_123456789_

Class: Bundler::Plugin::SourceList

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Bundler::SourceList
Defined in: lib/bundler/plugin/source_list.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

This class inherits a constructor from Bundler::SourceList

Instance Method Details

#add_git_source(options = {})

[ GitHub ]

  
# File 'lib/bundler/plugin/source_list.rb', line 8

def add_git_source(options = {})
  add_source_to_list Plugin::Installer::Git.new(options), git_sources
end

#add_rubygems_source(options = {})

[ GitHub ]

  
# File 'lib/bundler/plugin/source_list.rb', line 12

def add_rubygems_source(options = {})
  add_source_to_list Plugin::Installer::Rubygems.new(options), @rubygems_sources
end

#all_sources

[ GitHub ]

  
# File 'lib/bundler/plugin/source_list.rb', line 16

def all_sources
  path_sources + git_sources + rubygems_sources + []
end

#default_source

[ GitHub ]

  
# File 'lib/bundler/plugin/source_list.rb', line 20

def default_source
  git_sources.first || global_rubygems_source
end

#rubygems_aggregate_class (private)

[ GitHub ]

  
# File 'lib/bundler/plugin/source_list.rb', line 26

def rubygems_aggregate_class
  Plugin::Installer::Rubygems
end