In Files

  • bundler/plugin/installer.rb
  • bundler/plugin/installer/git.rb
  • bundler/plugin/installer/rubygems.rb
  • bundler/plugin/source_list.rb

Class/Module Index [+]

Quicksearch

Bundler::Plugin::Installer

Public Instance Methods

install(names, options) click to toggle source
 
               # File bundler/plugin/installer.rb, line 14
def install(names, options)
  check_sources_consistency!(options)

  version = options[:version] || [">= 0"]

  Bundler.settings.temporary(:disable_multisource => false) do
    if options[:git]
      install_git(names, version, options)
    elsif options[:local_git]
      install_local_git(names, version, options)
    else
      sources = options[:source] || Bundler.rubygems.sources
      install_rubygems(names, version, sources)
    end
  end
end
            
install_definition(definition) click to toggle source

Installs the plugin from Definition object created by limited parsing of Gemfile searching for plugins to be installed

@param [Definition] definition object @return [Hash] map of names to their specs they are installed with

 
               # File bundler/plugin/installer.rb, line 36
def install_definition(definition)
  def definition.lock(*); end
  definition.resolve_remotely!
  specs = definition.specs

  install_from_specs specs
end