From 73cfa118e761b62336364dd05890b310c65e2644 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Fri, 27 May 2011 15:59:48 -0400 Subject: [PATCH] tweaks --- lib/guard/rails.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/guard/rails.rb b/lib/guard/rails.rb index bce077f..d8f6851 100644 --- a/lib/guard/rails.rb +++ b/lib/guard/rails.rb @@ -16,8 +16,9 @@ module Guard end def run_all - Notifier.notify("Rails restarting on port #{options[:port]} in #{options[:environment]}", :title => "Restarting Rails...", :image => :pending) + Notifier.notify("Rails restarting on port #{options[:port]} in #{options[:environment]} environment...", :title => "Restarting Rails...", :image => :pending) stop_rails ; start_rails + Notifier.notify("Rails restarted on port #{options[:port]}.", :title => "Rails restarted!", :image => :success) end def stop @@ -36,6 +37,7 @@ module Guard def start_rails system %{sh -c 'rails s -d -e #{options[:environment]} -p #{options[:port]} --pid #{pid_file}'} + UI.info "Rails running, PID #{File.read(pid_file)}" end def stop_rails