If you want subtasks to use a particular host, you need to set the HOSTS
or HOSTFILTER environment variables. E.g.
find_servers(...).each do |server|
ENV['HOSTFILTER'] = server.host
sub.task.here
ENV['HOSTFILTER'] = nil
end
It's extremely ugly and hacky and I don't like it, but there's not
currently another way to do it.
- Jamis
On 2/16/09 5:09 AM, Gerhardus Geldenhuis wrote:
> I have also put the relevant code on http://pastie.org/390600
>
> Regards
> >
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---