S. Robert James
11/17/2006 2:59:00 AM
What is the best way to set something to do when a Rake task fails?
I'd like something like:
task :migrate_safely => [:backup, :migrate] do
rescue
if :backup
:restore
end
end
end
Is there a way to do anything similar?