mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 21:49:06 +02:00
[rubygems/rubygems] Add 'call for update' to RubyGems install command.
05811f8248
This commit is contained in:
parent
ceeefb5870
commit
c7d043065c
Notes:
git
2022-11-11 08:24:29 +00:00
6 changed files with 243 additions and 0 deletions
|
@ -5,6 +5,7 @@ require_relative "../dependency_installer"
|
|||
require_relative "../local_remote_options"
|
||||
require_relative "../validator"
|
||||
require_relative "../version_option"
|
||||
require_relative "../update_suggestion"
|
||||
|
||||
##
|
||||
# Gem installer command line tool
|
||||
|
@ -17,6 +18,7 @@ class Gem::Commands::InstallCommand < Gem::Command
|
|||
include Gem::VersionOption
|
||||
include Gem::LocalRemoteOptions
|
||||
include Gem::InstallUpdateOptions
|
||||
include Gem::UpdateSuggestion
|
||||
|
||||
def initialize
|
||||
defaults = Gem::DependencyInstaller::DEFAULT_OPTIONS.merge({
|
||||
|
@ -168,6 +170,8 @@ You can use `i` command instead of `install`.
|
|||
|
||||
show_installed
|
||||
|
||||
say update_suggestion if eglible_for_update?
|
||||
|
||||
terminate_interaction exit_code
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue