Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Aborting a rake task which uses a subprocess

Reply
Thread Tools

Aborting a rake task which uses a subprocess

 
 
Alex Young
Guest
Posts: n/a
 
      01-17-2007
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?

--
Alex

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rake tasks aborting with weird postgres issue Nic Young Ruby 0 06-23-2008 11:04 AM
rake published rdoc version and arity of Rake::Task#execute - wrongnumber of arguments (0 for 1) James Mead Ruby 0 01-15-2008 05:42 PM
[Rake] call a task of a namespace from an other task. Stéphane Wirtel Ruby 3 06-15-2007 06:52 AM
Rake and rake aborted! Rake aborted! undefined method `gem' for main:Object peppermonkey Ruby 1 02-10-2007 04:43 AM
Rake 0.7.0 breaks "rake engine_migrate"? Joe Van Dyk Ruby 2 01-31-2006 12:11 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57