Brian
--
* You received this message because you are subscribed to the Google Groups "Capistrano" group.
* To post to this group, send email to capis...@googlegroups.com
* To unsubscribe from this group, send email to capistrano+...@googlegroups.com For more options, visit this group at http://groups.google.com/group/capistrano?hl=en
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"
So leverage the power of your shell, you can run() something and pass the appropriate nohup/background command to ask your shell to run it in the background, which will leave cap free to move on to the next run() command, etc.- Lee
--