On 26 March 2013 12:25, Jesper Rønn-Jensen
<jesp...@gmail.com> 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.