summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshtirlic <serg@podtynnyi.com>2013-07-30 16:15:59 +0400
committershtirlic <serg@podtynnyi.com>2013-07-30 16:15:59 +0400
commit11eb40404fc981f4c0d0b67bfbd22b8a900c9140 (patch)
tree6a210185933ce54e1b51a11b65b12ad8c7f7b397
parent6608516a379d6cd4bd2b35c8b913b6c284197e00 (diff)
downloadbundler-11eb40404fc981f4c0d0b67bfbd22b8a900c9140.tar.gz
Add --quiet option to bundle package
-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 137a3e13f7..608b1514e3 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -485,6 +485,7 @@ module Bundler
desc "package", "Locks and then caches all of the gems into vendor/cache"
method_option "no-prune", :type => :boolean, :banner => "Don't remove stale gems from the cache."
method_option "all", :type => :boolean, :banner => "Include all sources (including path and git)."
+ method_option "quiet", :type => :boolean, :banner => "Only output warnings and errors."
long_desc <<-D
The package command will copy the .gem files for every gem in the bundle into the
directory ./vendor/cache. If you then check that directory into your source
@@ -492,6 +493,7 @@ module Bundler
bundle without having to download any additional gems.
D
def package
+ Bundler.ui.level = "warn" if options[:quiet]
setup_cache_all
install
# TODO: move cache contents here now that all bundles are locked