Skip to content

Instantly share code, notes, and snippets.

@MrJaba MrJaba/Rakefile
Created Jun 3, 2012

Embed
What would you like to do?
jRuby Rake file trap test
desc "Show off odd trap behaviour"
task :trap do
trap("INT") { puts "trapped INT"; exit(true) }
at_exit { puts "here" }
puts "sleeping"
sleep 10
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.