Aborting a rake task which uses a subprocess

A

Alex Young

Hi all,

I've got a rake file which I use to deploy a website. This rakefile
involves running a bunch of backticked subprocesses (like ssh sessions,
lftp sessions and so on). Often, I can spot that something has gone
wrong in one of these subprocesses from the output, or realise I've
forgotten something crucial, and want to abort manually.

Hitting Ctrl-C only affects the subprocess that's running at the time,
and makes rake just skip on to the next one. Is there any generic way
of allowing Rake to also catch the signal and abort?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top