Method: Bundler::SourceList#add_path_source

Defined in:
lib/bundler/source_list.rb

#add_path_source(options = {}) ⇒ Object



35
36
37
38
39
40
41
42
43
# File 'lib/bundler/source_list.rb', line 35

def add_path_source(options = {})
  if options["gemspec"]
    add_source_to_list Source::Gemspec.new(options), path_sources
  else
    path_source = add_source_to_list Source::Path.new(options), path_sources
    @global_path_source ||= path_source if options["global"]
    path_source
  end
end