task ... :roles => [:foo, :bar]
In ruby [] is an array and the :strings are symbols, so you are just
passing an array of symbols
On Jun 8, 2010, at 6:24 AM, Robin Bowes <[email protected]>
wrote:
Hi,
If I want to deploy to the :web role, I use:
task ... :roles => [:web]
What if I want to deploy to two roles, eg. :foo & :bar - how do I
specify that the task should run for both roles?
task ... :roles => [:foo, :bar] ?
task ... :roles => [:foo],[:bar] ?
task ... :roles => [:foo].join[:bar] ?
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]
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