I\'m new to Rake and using it to build .net projects. What I\'m interested in is having a Summary task that prints out a summary of what has been done. I want this task to alw
You could use the Kernel.trap call and attach to the "Exit" signal. It will fire upon both normal and abnormal exit.
Put this early in your rakefile:
Kernel.trap("EXIT") do
Rake::Task[:final].invoke
end
Now any time you make a "final" task it will be executed at the very end of the program. no matter what.
task :final do
puts "Hit return to continue..."
STDIN.getc
end