Class Gem::RemoteInstaller
In: lib/rubygems/remote_installer.rb
Parent: Object

Methods

Included Modules

UserInteraction

Public Class methods

options[:http_proxy]::

  • [String]: explicit specification of proxy; overrides any environment variable setting
  • nil: respect environment variables (HTTP_PROXY, HTTP_PROXY_USER, HTTP_PROXY_PASS)
  • :no_proxy: ignore environment variables and _don‘t_ use a proxy
  • :cache_dir: override where downloaded gems are cached.

Public Instance methods

Find a gem to be installed by interacting with the user.

This method will install package_name onto the local system.

gem_name:[String] Name of the Gem to install
version_requirement:[default = "> 0.0.0"] Gem version requirement to install
Returns:an array of Gem::Specification objects, one for each gem installed.

Install all the given dependencies. Returns an array of Gem::Specification objects, one for each dependency installed.

TODO: For now, we recursively install, but this is not the right way to do things (e.g. if a package fails to download, we shouldn‘t install anything).

Return a hash mapping the available source names to the source index of that source.

Finds the Gem::Specification objects and the corresponding source URI for gems matching gem_name and version_requirement

[Validate]