I was unable to find this in the documentation (possibly just because I wasn't familiar with the way it was worded in the document) but lets say I have the following:
desc "Setup task:* for user@server1" task :server1 do role :cluster, 'user@server1' end desc "restart snmpd" task :restart_snmpd, :roles => :cluster do run "sudo /etc/init.d/snmpd restart" end I would run cap server1 restart_snmpd But lets say I have desc "Setup task:* for user@server1" task :server1 do role :cluster, 'user@server1' end desc "Setup task:* for user@server2" task :server2 do role :cluster, 'user@server2' end desc "restart snmpd" task :restart_snmpd, :roles => :cluster do run "sudo /etc/init.d/snmpd restart" end And I want to run a SINGLE cap job for both, yes I know the simple answer is make desc "Setup task:* for user@server1 and user@server2" task :server1and2 do role :cluster, 'user@server1' role :cluster, 'user@server2' end But is there a way to make a cap job that reuses other cap jobs so I can run cap server1,server2 restart_snmpd Thanks, Brian Carpio -- * 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
