Hi

Consider the example below:


set :user, 'someuser'
role :servers, 'server1', 'server2'

namespace :deploy do
  desc "invokes the date task"
  task :default, :max_hosts => 1 do
    find_and_execute_task "deploy:date"
    find_and_execute_task "deploy:hostname"
  end

  desc "tells the date"
  task :date, :roles => :servers do
    run 'sleep 5; date'
  end

  desc "tells the hostname"
  task :hostname, :roles => :servers do
    run "hostname"
  end
end

I want it to run the both date and hostname tasks on server1 and then
on server2, but it runs each command concurrently on both servers. Is
there a way to make this work (without starting to write wrappers
around it)?

Thanks in advance

haim

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

Reply via email to