summaryrefslogtreecommitdiff
path: root/lib/bundler
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-08-19 17:32:41 -0400
committerSamuel Giddins <segiddins@segiddins.me>2017-08-28 09:48:18 -0500
commit616394788ededa17409ec893d8befe9f683b54fb (patch)
treeff113dc4dbd71a29be9309d9827cc0480c3f5d8b /lib/bundler
parentcda5ef70e2b07d5d78168b34eeeb9dc86df78894 (diff)
downloadbundler-616394788ededa17409ec893d8befe9f683b54fb.tar.gz
Default to packaging all on 2.0
Diffstat (limited to 'lib/bundler')
-rw-r--r--lib/bundler/cli.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index 12fe7adf01..954e19b530 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -348,7 +348,8 @@ module Bundler
map %w[cache] => :package
else
desc "cache [OPTIONS]", "Cache all the gems to vendor/cache", :hide => true
- method_option "all", :type => :boolean, :banner => "Include all sources (including path and git)."
+ method_option "all", :type => :boolean, :default => Bundler.feature_flag.cache_command_is_package? || nil,
+ :banner => "Include all sources (including path and git)."
method_option "all-platforms", :type => :boolean, :banner => "Include gems for all platforms present in the lockfile, not only the current one"
method_option "no-prune", :type => :boolean, :banner => "Don't remove stale gems from the cache."
def cache
@@ -358,7 +359,8 @@ module Bundler
end
desc "#{Bundler.feature_flag.cache_command_is_package? ? :cache : :package} [OPTIONS]", "Locks and then caches all of the gems into vendor/cache"
- method_option "all", :type => :boolean, :banner => "Include all sources (including path and git)."
+ method_option "all", :type => :boolean, :default => Bundler.feature_flag.cache_command_is_package? || nil,
+ :banner => "Include all sources (including path and git)."
method_option "all-platforms", :type => :boolean, :banner => "Include gems for all platforms present in the lockfile, not only the current one"
method_option "cache-path", :type => :string, :banner =>
"Specify a different cache path than the default (vendor/cache)."