Skip to content

Commit

Permalink
Hook EYLogger and notify start/stop into the deploy:cold and deploy:r…
Browse files Browse the repository at this point in the history
…ollback tasks
  • Loading branch information
cgriego committed Jan 13, 2010
1 parent fa35db1 commit d82fbf5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/eycap/recipes/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Capistrano::Configuration.instance(:must_exist).load do

namespace :deploy do
# This is here to hook into the logger for deploy and deploy:long tasks
["deploy", "deploy:long"].each do |tsk|
# This is here to hook into the logger for deploy tasks
["deploy", "deploy:long", "deploy:cold", "deploy:rollback"].each do |tsk|
before(tsk) do
Capistrano::EYLogger.setup( self, tsk )
at_exit{ Capistrano::EYLogger.post_process if Capistrano::EYLogger.setup? }
Expand Down Expand Up @@ -143,7 +143,7 @@
end
end

["deploy", "deploy:long"].each do |tsk|
["deploy", "deploy:long", "deploy:cold", "deploy:rollback"].each do |tsk|
before(tsk, "deploy:notify:start")
after(tsk, "deploy:notify:stop")
end
Expand Down

0 comments on commit d82fbf5

Please sign in to comment.