class Bundler::Plugin::SourceList - bundler-1.15.4 Documentation

# class Bundler::Plugin::SourceList

### Public Class Methods

new() click to toggle source

    # File lib/bundler/plugin/source_list.rb, line 7
    def initialize
      @path_sources       = []
      @git_sources        = []
      @rubygems_aggregate = Plugin::Installer::Rubygems.new
      @rubygems_sources   = []
    end

### Public Instance Methods

add_git_source(options = {}) click to toggle source

    # File lib/bundler/plugin/source_list.rb, line 14
    def add_git_source(options = {})
      add_source_to_list Plugin::Installer::Git.new(options), git_sources
    end

add_rubygems_source(options = {}) click to toggle source

    # File lib/bundler/plugin/source_list.rb, line 18
    def add_rubygems_source(options = {})
      add_source_to_list Plugin::Installer::Rubygems.new(options), @rubygems_sources
    end

all_sources() click to toggle source

    # File lib/bundler/plugin/source_list.rb, line 22
    def all_sources
      path_sources + git_sources + rubygems_sources
    end