[opensuse-ruby] how to fail rake tasks
27 Apr
2010
27 Apr
'10
11:45
Hi, in our rake task library(*) we often use "exit" to fail tasks: puts "ERROR: 'make money' failed" exit 1 I've found that if you raise an exception instead, it will let rake finish the other tasks that are running at the same time. (Yes, that's possible. "task" is sequential and "multitask" is parallel) raise "'make money' failed" or just fail Kernel.fail is a synonym for Kernel.raise, did you know that? *) http://gitorious.org/opensuse/yast-rest-service/trees/master/webservice-task... -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
5338
Age (days ago)
5338
Last active (days ago)
0 comments
1 participants
participants (1)
-
Martin Vidner