aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-02-12 16:16:22 +0100
committerYves Senn <yves.senn@gmail.com>2014-02-12 16:16:22 +0100
commit8cdd93ad627dfd549312b3f4396160ed7bad4909 (patch)
treec571c8b1410a1a11e9f386d74fe60d360896d981 /railties
parent7d5454dcdd7c037658bc62ab3af177e5ca3b69ad (diff)
parent2c7471a95dd818fbad80bd4925ac7c9745884363 (diff)
downloadrails-8cdd93ad627dfd549312b3f4396160ed7bad4909.tar.gz
rails-8cdd93ad627dfd549312b3f4396160ed7bad4909.tar.bz2
rails-8cdd93ad627dfd549312b3f4396160ed7bad4909.zip
Merge pull request #14025 from xtian/rails-new-quiet
Hide bundler output for `rails new` if quiet option is specified.
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/app_base.rb3
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