diff options
author | Christian Wesselhoeft <christian@cwesselhoeft.com> | 2014-02-11 23:11:02 -0800 |
---|---|---|
committer | Christian Wesselhoeft <christian@cwesselhoeft.com> | 2014-02-11 23:12:38 -0800 |
commit | 2c7471a95dd818fbad80bd4925ac7c9745884363 (patch) | |
tree | 8c4045c4bbbf5ae2e4a6fb7dffd9b07bc1ac2f4f /railties | |
parent | f34e0c4a207ddb7b2f25f43f68e0efad881cfbea (diff) | |
download | rails-2c7471a95dd818fbad80bd4925ac7c9745884363.tar.gz rails-2c7471a95dd818fbad80bd4925ac7c9745884363.tar.bz2 rails-2c7471a95dd818fbad80bd4925ac7c9745884363.zip |
Hide bundler output for `rails new` if quiet option is specified.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/app_base.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index 55709b80ae..815894144a 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -412,7 +412,8 @@ module Rails require 'bundler' Bundler.with_clean_env do - print `"#{Gem.ruby}" "#{_bundle_command}" #{command}` + output = `"#{Gem.ruby}" "#{_bundle_command}" #{command}` + print output unless options[:quiet] end end |