We've found it useful to be able to run a task serially across servers
(http://engineering.lumosity.com/?p=17).
I'm wondering if either capistrano already has this feature (and we
missed it) or if the community is interested in adding it. If the
latter, where would be the appropriate place to add this
functionality?
Our current solution is this simple chunk of code (method on
Capistrano::Configuration):
def serialize_task_for(task_name, servers)
servers.each do |server|
task(task_name, :hosts => server) do
yield server
end
eval(task_name)
end
end
thanks,
eric
--
* 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