Just for the record, I ended up staying on Capistrano 2 and created a different solution with a single limitation -- only run against one role at a time.
http://stackoverflow.com/questions/15619945/capistrano-how-to-access-a-serverdefinition-option-in-the-code/15773270#15773270 Thanks a lot for the feedback! /Jesper On Tuesday, March 26, 2013 1:25:05 PM UTC+1, Lee Hambley wrote: > > > On 26 March 2013 12:25, Jesper Rønn-Jensen <jesp...@gmail.com<javascript:> > > wrote: > >> Thanks for your reply. > > > Any time, keep in mind, I'm speaking about as-yet unreleased stuff, so > YMMV, no warranty, etc. > > You iterate over "hosts" in the example like this: >> >> on hosts do |host| >> ... >> end >> > > When I understand the way it's been build properly (and I haven't written > that part of the code myself) - the roles are available through a variable > that you can treat in a similar fashion, but `on(roles)` is meaningless, > you'd need to do `roles.each { |role| on(role.hosts) }` or something. > > However, I haven't written the Cap v3. role code, you'll have to go > spelunking in the code, sorry. > -- -- * You received this message because you are subscribed to the Google Groups "Capistrano" group. * To post to this group, send email to capistrano@googlegroups.com * To unsubscribe from this group, send email to capistrano+unsubscr...@googlegroups.com 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 unsubscribe from this group and stop receiving emails from it, send an email to capistrano+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.