Browse files

apply success message to rails3

  • Loading branch information...
1 parent 7efb6bc commit 6a359c49a23dae0497e9e9809206f7beb7fa4371 @hone hone committed Jun 12, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/language_pack/rails3.rb
View
4 lib/language_pack/rails3.rb
@@ -47,10 +47,12 @@ def run_assets_precompile_rake_task
ENV["RAILS_ENV"] ||= "production"
puts "Running: rake assets:precompile"
- pipe("env PATH=$PATH:bin bundle exec rake assets:precompile 2>&1")
+ require 'benchmark'
+ time = Benchmark.realtime { pipe("env PATH=$PATH:bin bundle exec rake assets:precompile 2>&1") }
if $?.success?
log "assets_precompile", :status => "success"
+ puts "Asset precompilation completed (#{time}s)"
else
log "assets_precompile", :status => "failure"
puts "Precompiling assets failed, enabling runtime asset compilation"

0 comments on commit 6a359c4

Please sign in to comment.