Hi All,

I'd like to call an on :before task only once before a deployment
script.  Is there an easy way to tell it to only run once?  Or
possibly set a variable and then skip over the task if the variable is
set?

This didn't work:

on :before, "mytasks:run_only_once"

task :run_only_once do
  if already_ran.nil?
    ..stuff..
  else
    already_ran = "notnil"
  end
end

Thanks for any help!

Chad



--~--~---------~--~----~------------~-------~--~----~
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.co.uk/group/capistrano?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to