Skip to content

Instantly share code, notes, and snippets.

@MrJaba
Created June 3, 2012 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrJaba/2862745 to your computer and use it in GitHub Desktop.
Save MrJaba/2862745 to your computer and use it in GitHub Desktop.
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