Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2573 from shtirlic/quiet_package
Browse files Browse the repository at this point in the history
Add --quiet option to bundle package
  • Loading branch information
indirect committed Aug 2, 2013
2 parents cadc77a + 11eb404 commit 4353072
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/bundler/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -493,13 +493,15 @@ def cache
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
control repository, others who check out your source will be able to install the
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
Expand Down

0 comments on commit 4353072

Please sign in to comment.