aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-05-13 00:57:16 +0200
committerXavier Noria <fxn@hashref.com>2011-05-13 01:06:27 +0200
commit2561a1f546b304032b6d2702c59bdf5492990ba6 (patch)
tree9bcb2b93acced62f766a1f2499792c5fc0afb61d /railties/lib/rails/generators
parentead9e4e6267be4def4e83cf7fe1ea4197ddf4eff (diff)
downloadrails-2561a1f546b304032b6d2702c59bdf5492990ba6.tar.gz
rails-2561a1f546b304032b6d2702c59bdf5492990ba6.tar.bz2
rails-2561a1f546b304032b6d2702c59bdf5492990ba6.zip
say something when running bundle commands
This is convenient because we buffer stdout. In particular bundle install takes a while and generation just hangs there with no indication of what's going on otherwise.
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r--railties/lib/rails/generators/app_base.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb
index 5d4afc8102..3b0791a453 100644
--- a/railties/lib/rails/generators/app_base.rb
+++ b/railties/lib/rails/generators/app_base.rb
@@ -185,6 +185,8 @@ module Rails
end
def bundle_command(command)
+ say_status :run, "bundle #{command}"
+
# We use backticks and #print here instead of vanilla #system because it
# is easier to silence stdout in the existing test suite this way. The
# end-user gets the bundler commands called anyway.