class Gem::Commands::InstallCommand

def execute

def execute
  if options.include? :gemdeps
    install_from_gemdeps
    return # not reached
  end
  @installed_specs = []
  ENV.delete "GEM_PATH" if options[:install_dir].nil?
  check_version
  load_hooks
  exit_code = install_gems
  show_installed
  say update_suggestion if eligible_for_update?
  terminate_interaction exit_code
end