Class: Bundler::Plugin::SourceList
Instance Attribute Summary
Attributes inherited from SourceList
#git_sources, #global_path_source, #metadata_source, #path_sources, #plugin_sources
Instance Method Summary
collapse
Methods inherited from SourceList
#add_global_rubygems_remote, #add_plugin_source, #aggregate_global_source?, #cached!, #default_source, #expired_sources?, #get, #global_rubygems_source, #implicit_global_source?, #initialize, #local!, #local_mode?, #local_only!, #lock_other_sources, #lock_rubygems_sources, #lock_sources, #merged_gem_lockfile_sections!, #merged_gem_lockfile_sections?, #non_default_explicit_sources, #non_global_rubygems_sources, #remote!, #replace_sources!, #rubygems_remotes, #rubygems_sources
Instance Method Details
#add_git_source(options = {}) ⇒ Object
8
9
10
|
# 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_path_source(options = {}) ⇒ Object
12
13
14
|
# File 'lib/bundler/plugin/source_list.rb', line 12
def add_path_source(options = {})
add_source_to_list Plugin::Installer::Path.new(options), path_sources
end
|
#add_rubygems_source(options = {}) ⇒ Object
16
17
18
|
# File 'lib/bundler/plugin/source_list.rb', line 16
def add_rubygems_source(options = {})
add_source_to_list Plugin::Installer::Rubygems.new(options), @rubygems_sources
end
|
#all_sources ⇒ Object
20
21
22
|
# File 'lib/bundler/plugin/source_list.rb', line 20
def all_sources
path_sources + git_sources + rubygems_sources + [metadata_source]
end
|