Hello...
I'm new to Capistrano, love it so far, great tool.  I am trying to
have more than one condition to select a task.  I have lots of servers
and would like to deploy to them in groups of odd/even.  Here is what
I am trying to do, is this possible with some syntax?

I have a server defined as:
  role :server, "test01", :machine => 1
  role :server, "test02", :machine => 2
 role :server, "test03", :machine => 3

   task :stop_odd, :roles => :server, :only => { :machine =>
1, :machine => 3 , :machine => 5  } do
    run "echo Hello, $HOSTNAME"
  end

This way only the last entry is used.  I also tried:

task :stop_odd, :roles => :server, :only => { :machine => 1
|| :machine => 3 || :machine => 5  } do
    run "echo Hello, $HOSTNAME"
  end

I also tried expressions but that didn't work either.  Is there some
way to do this?

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