Hello-

Is it possible to dynamically set roles for a specific task?

For example, I want to create some generic tasks, along with groups of
servers I use, and I wan tto be able to execute these commands on
different groups, without having to duplicate code.

role :group1, m1, m2, m3
role :group2, m4, m5, m6

task :generic_task, :roles => [some passed in variable] do
run "echo hi"
end

Is something like this possible?  I have tried a couple options, none
of which worked.

Thanks!
--~--~---------~--~----~------------~-------~--~----~
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