1. Gem::
  2. Commands::
  3. InstallCommand

class Gem::Commands::InstallCommand

Gem installer command line tool

See ‘gem help install`

Public Class Methods

Source
# File lib/rubygems/commands/install_command.rb, line 24definitializedefaults =Gem::DependencyInstaller::DEFAULT_OPTIONS.merge({format_executable:false,lock:true,suggest_alternate:true,version:Gem::Requirement.default,without_groups: [],  })defaults.merge!(install_update_options)super"install","Install a gem into the local repository",defaultsadd_install_update_optionsadd_local_remote_optionsadd_platform_optionadd_version_optionadd_prerelease_option"to be installed. (Only for listed gems)"@installed_specs = []end
Calls superclass methodGem::Command::new

Public Instance Methods

Source
# File lib/rubygems/commands/install_command.rb, line 148defexecuteifoptions.include?:gemdepsinstall_from_gemdepsreturn# not reachedend@installed_specs = []ENV.delete"GEM_PATH"ifoptions[:install_dir].nil?check_versionload_hooksexit_code =install_gemsshow_installedsayupdate_suggestionifeligible_for_update?terminate_interactionexit_codeend