Created
July 2, 2010 05:38
-
-
Save clayton/460977 to your computer and use it in GitHub Desktop.
Revisions
-
clayton created this gist
Jul 2, 2010 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ desc "Show ps" task :ps do run 'ps ax' do | channel, stream, data | puts data if stream == :out if stream == :err puts "[err: #{channel[:host]}] #{data}" break end end end desc "Stream log from rails" task :log, :roles => :app do stream "tail -f #{current_path}/log/#{rails_env}.log" end desc "Get uptime from server" task :uptime, :roles => :app do run 'uptime' end