summaryrefslogtreecommitdiff
path: root/lib/bundler/cli.rb
diff options
context:
space:
mode:
authorThe Bundler Bot <bot@bundler.io>2017-08-29 20:31:20 +0000
committerThe Bundler Bot <bot@bundler.io>2017-08-29 20:31:20 +0000
commit73f91bb04cd75ea2f86282d282f5d5c9e78191fb (patch)
tree0c06ee289214a103d433bd6fddc8a64420664092 /lib/bundler/cli.rb
parent808b9c90e5e0f365223638e2aa3c225693bdc4c9 (diff)
parentb8c5f702ab58f563faf6652398214d63ab234f8b (diff)
downloadbundler-73f91bb04cd75ea2f86282d282f5d5c9e78191fb.tar.gz
Auto merge of #5961 - bundler:seg-auto-clean, r=indirect
[2.0] Automatically bundle clean without a path set ### What was the end-user problem that led to this PR? The problem was with the switch to defaulting to a local install in 2.0, we're concerned about taking up too much disk space. ### What was your diagnosis of the problem? My diagnosis was we'd like to run `bundle clean` when possible. Closes https://github.com/bundler/bundler/issues/5875. ### What is your fix for the problem, implemented in this PR? My fix runs `clean` automatically on 2.0 when a `path` has _not_ been set. ### Why did you choose this fix out of the possible options? I chose this fix because it avoids the possibility of accidentally cleaning a shared location.
Diffstat (limited to 'lib/bundler/cli.rb')
-rw-r--r--lib/bundler/cli.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index 0386bb25ac..97ee5beca0 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -5,6 +5,8 @@ require "bundler/vendored_thor"
module Bundler
class CLI < Thor
+ require "bundler/cli/common"
+
AUTO_INSTALL_CMDS = %w[show binstubs outdated exec open console licenses clean].freeze
PARSEABLE_COMMANDS = %w[
check config help exec platform show version