logo       

Re: Executing a task before each task is executed?: msg#00087

lang.ruby.capistrano.general

Subject: Re: Executing a task before each task is executed?


On Thu, 2007-11-15 at 14:10 +0530, Saurabh Nanda wrote:
> Is there a way I can specify a task which will be execute before each
> task? If I have ten different tasks, I don't want to end up writing
> ten different :before_* tasks.

You could use:

on :load do
puts 'first!'
end

There are more 'global events' supported. Check this post:
http://weblog.jamisbuck.org/2007/5/11/capistrano-2-0-preview-2

Gr Gert




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise