Class: Bundler::Plugin::SourceList
- Inherits:
-
SourceList
- Object
- SourceList
- Bundler::Plugin::SourceList
- Defined in:
- lib/bundler/plugin/source_list.rb
Instance Attribute Summary
Attributes inherited from SourceList
#git_sources, #global_rubygems_source, #metadata_source, #path_sources, #plugin_sources
Instance Method Summary collapse
- #add_git_source(options = {}) ⇒ Object
- #add_rubygems_source(options = {}) ⇒ Object
- #all_sources ⇒ Object
Methods inherited from SourceList
#add_path_source, #add_plugin_source, #add_rubygems_remote, #cached!, #default_source, #get, #initialize, #lock_sources, #remote!, #replace_sources!, #rubygems_primary_remotes, #rubygems_remotes, #rubygems_sources
Constructor Details
This class inherits a constructor from Bundler::SourceList
Instance Method Details
#add_git_source(options = {}) ⇒ Object
8 9 10 |
# File 'lib/bundler/plugin/source_list.rb', line 8 def add_git_source( = {}) add_source_to_list Plugin::Installer::Git.new(), git_sources end |
#add_rubygems_source(options = {}) ⇒ Object
12 13 14 |
# File 'lib/bundler/plugin/source_list.rb', line 12 def add_rubygems_source( = {}) add_source_to_list Plugin::Installer::Rubygems.new(), @rubygems_sources end |
#all_sources ⇒ Object
16 17 18 |
# File 'lib/bundler/plugin/source_list.rb', line 16 def all_sources path_sources + git_sources + rubygems_sources + [] end |