thanks. i will try this.

On Jun 5, 5:12 pm, Jamis Buck <[EMAIL PROTECTED]> wrote:
> The simplest thing would be to just do this:
>
>    task :hello_world do
>      next if some_var_another_task_defined == "value"
>      # ...
>    end
>
> Note you can't use "return", since the task is just a block, and not
> a true method. Thus, "next" is used to return from the body of the task.
>
> - Jamis
>
> On Jun 5, 2007, at 7:36 AM,doronwrote:
>
>
>
> > i want a certain task to run only if a global var has a certain value,
> > something like:
>
> > task :hello_world :only => { :some_var_another_task_defined => true }
> > do
>
> > is something like this possible?
>
> > the solution i know that can work is opening the task with an if. but
> > maybe there is a more elegant one.


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to