You can also provide an :except option to skip the callback for an array of tasks.
-- Simone On Mon, Jun 14, 2010 at 4:51 PM, Donovan Bray <[email protected]> wrote: > If I'm not mistaken :start runs for each top level task that you specify on > the command line, so > > cap one two three > > Would trigger :start three times. That might not be an issue for you. If > it is then you could do > > On :start do > local.populate_roles if needs_populate_roles? > end > > def needs_populate_roles? > #return true if you do > end > > > On Jun 14, 2010, at 4:11 AM, Robin Bowes <[email protected]> > wrote: > > On 14/06/10 12:09, Simone Carletti wrote: >> >>> You can use "on :start". >>> >>> on :start, "local:populate_roles" >>> >> >> Simone, >> >> Thanks, that looks like what I need. >> >> R. >> >> -- >> * 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]<capistrano%[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 post to this group, send email to [email protected] > * To unsubscribe from this group, send email to > [email protected]<capistrano%[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 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
