summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-07-19 13:14:34 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-07-19 13:14:34 -0500
commit9760e0898734340d1d44f7a5a6b84341b0c512ae (patch)
treeec7d476a60fcb6f923a57bcbdefae026c3af4b87
parent1b7955e96e56f24d03b2438267144c06f1d32c78 (diff)
downloadbundler-9760e0898734340d1d44f7a5a6b84341b0c512ae.tar.gz
[CLI] Deprecate install --clean
-rw-r--r--lib/bundler/cli.rb2
-rw-r--r--spec/commands/clean_spec.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index 9691ad6f12..2284466bbb 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -154,7 +154,7 @@ module Bundler
D
deprecated_option "binstubs", :type => :string, :lazy_default => "bin", :banner =>
"Generate bin stubs for bundled gems to ./bin"
- method_option "clean", :type => :boolean, :banner =>
+ deprecated_option "clean", :type => :boolean, :banner =>
"Run bundle clean automatically after install"
deprecated_option "deployment", :type => :boolean, :banner =>
"Install using defaults tuned for deployment environments"
diff --git a/spec/commands/clean_spec.rb b/spec/commands/clean_spec.rb
index dcdb4bfaa3..e1febcbd4e 100644
--- a/spec/commands/clean_spec.rb
+++ b/spec/commands/clean_spec.rb
@@ -338,7 +338,7 @@ RSpec.describe "bundle clean" do
expect(out).to include("thin (1.0)")
end
- it "--clean should override the bundle setting on install" do
+ it "--clean should override the bundle setting on install", :bundler => "< 2" do
gemfile <<-G
source "file://#{gem_repo1}"
@@ -358,7 +358,7 @@ RSpec.describe "bundle clean" do
should_not_have_gems "thin-1.0"
end
- it "--clean should override the bundle setting on update" do
+ it "--clean should override the bundle setting on update", :bundler => "< 2" do
build_repo2
gemfile <<-G