class Bundler::Plugin::Installer

def install_rubygems(names, version, sources)

Returns:
  • (Hash) - map of names to the specs of plugins installed

Parameters:
  • source(s) (String, Array) -- to resolve the gem
  • version (Array) -- of the gem to install
  • name (String) -- of the plugin gem to search in the source
def install_rubygems(names, version, sources)
  deps = names.map {|name| Dependency.new name, version }
  source_list = SourceList.new
  source_list.add_rubygems_source("remotes" => sources)
  definition = Definition.new(nil, deps, source_list, true)
  install_definition(definition)
end