I've used this method to change which roles to use not to avoid callbacks as I 
mentioned how I deal with that earlier. But if you do use this remember you can 
make the body of the task a method and call the same method inside your 
different task and they will work based on the context of the task they are 
called inside. 

def logfoo
  logger.info "foo"
end

after :foo, :bar
task :foo do
  logfoo
end

task :bar do
  logger.info "bar"
end

task :foo_no_bar do
  logfoo
end


On Apr 26, 2013, at 4:55 AM, Lee Hambley <[email protected]> wrote:

> You have to change them so that you have my_task, no prerequisites, and 
> something like my_task_with_prerequisites
> 
> On Friday, April 26, 2013, henrique matias wrote:
>> Hello Folks,
>> 
>> On my deploy.rb i have a few tasks which are chained to others, but some 
>> times i would like to execute them without triggering the chained ones...
>> 
>> Am trying to find a "magic parameter" on docs, but perhaps am not the beset 
>> doc explorer ( :
>> 
>> peace
>> -- 
>> -- 
>> * You received this message because you are subscribed to the Google Groups 
>> "Capistrano" group.
>> * To post to this group, send email to [email protected]
>> * To unsubscribe from this group, send email to 
>> [email protected] For more options, visit this group 
>> at http://groups.google.com/group/capistrano?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Capistrano" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> -- 
> Lee Hambley
> --
> http://lee.hambley.name/
> +49 (0) 170 298 5667
> 
> -- 
> -- 
> * You received this message because you are subscribed to the Google Groups 
> "Capistrano" group.
> * To post to this group, send email to [email protected]
> * To unsubscribe from this group, send email to 
> [email protected] For more options, visit this group at 
> http://groups.google.com/group/capistrano?hl=en
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Capistrano" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to