I guess I don't want this to be a shell issue, these tasks aren't dependent on one another so I was hoping capistrano could run them all at the same time. What if I separate out each run " command " to its own cap task then can I run cap tasks in parellel?
Thanks, Brian On Sat, Nov 5, 2011 at 11:07 AM, Donovan Bray <[email protected]> wrote: > You can do anything that your shell can do. > > You have to first determine how you want the commands to exit in case one > command fails. > > run "a;b;c" > > In this case all commands will run regardless of exit code, the exit code > of the last command only will be returned to cap. > > run "a && b && c" > > Will run each command but will exit on the first failure > > run "cd /a && b; true" > > Will exit and not run b if it can't cd into a; > If it can cd into a then it will run b; but it will always report sucess > to cap; even if b fails. > > Fair warning sudo doesn't allow you to chain execution this way > > sudo "cd /a && b; true" > > Won't work as expected; but you could rewrite it as a run. > > run "cd /a && #{sudo} b; true" > > On Nov 5, 2011, at 5:22 AM, Brian Carpio <[email protected]> wrote: > > > Lets say I have the following > > > > > > desc "my task" > > task :my_task, :roles => :cluster do > > run "some command here" > > run "some command here" > > run "some command here" > > run "some command here" > > run "some command here" > > run "some command here" > > run "some command here" > > end > > > > When I call my_task each command runs one after the other, is there a > > way to make Capistrano run them all at once instead of waiting for the > > first one to finish then move to the next one? > > > > Thanks, > > Brian > > > > -- > > * 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 > > -- > * 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 > -- * 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
