summaryrefslogtreecommitdiff
path: root/lib/bundler/cli.rb
diff options
context:
space:
mode:
authorJose Galisteo <ceritium@gmail.com>2021-09-01 09:34:21 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-09-17 20:46:18 +0900
commitb45fe48fbb20e334ef6dd1a85d5b7a37e6701d40 (patch)
tree6d57180c7b4c7941b10800f30fd341d189422249 /lib/bundler/cli.rb
parentfd918d1afa89405c194e90476373f936b3577df0 (diff)
[rubygems/rubygems] Trigger install command by default on remove
Closes https://github.com/rubygems/rubygems/issues/4889 https://github.com/rubygems/rubygems/commit/2b1754479c
Diffstat (limited to 'lib/bundler/cli.rb')
-rw-r--r--lib/bundler/cli.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index a72f0feaef..d5de72e5d4 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -184,6 +184,7 @@ module Bundler
method_option "install", :type => :boolean, :banner =>
"Runs 'bundle install' after removing the gems from the Gemfile"
def remove(*gems)
+ SharedHelpers.major_deprecation(2, "The `--install` flag has been deprecated. `bundle install` is triggered by default.") if ARGV.include?("--install")
require_relative "cli/remove"
Remove.new(gems, options).run
end