Permalink
Browse files

Hide bundler output for `rails new` if quiet option is specified.

  • Loading branch information...
1 parent f34e0c4 commit 2c7471a95dd818fbad80bd4925ac7c9745884363 @xtian xtian committed Feb 12, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 railties/lib/rails/generators/app_base.rb
@@ -412,7 +412,8 @@ def bundle_command(command)
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

0 comments on commit 2c7471a

Please sign in to comment.