On 1/30/09 9:16 AM, Gerhardus Geldenhuis wrote:
> I were probably doing something stupid...
> Its working now, but... it loops through the list of servers and the
> executes the task for each server 16 times in total.
> 
> role :dev_xml_gerrard, "longtct03g", "longtct03h", "longtct03i",
> "longtct03j"
> 
> task :foo, roles => :dev_xml_gerrard do
>     find_servers(:roles => :dev_xml_gerrard).each do |server|
>       run "uname -a"
>       run "sleep 4"
>     end
> end

You missed the part from the original snippet that made this all work:

  run "uname -a", :hosts => server

etc.

If you leave off the :hosts specification, it'll run on all hosts for
the current task.

- Jamis

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