require 'pry' trap("INT"){binding.pry}
And now you can interrupt it with a crl-c. After making changes to the environment
exit
will let the script resume. Use exit-program
if you really want the script to exit.
For example I might use this to change the proxy my agent is connecting through on a long scrape job when things gets a little slow.
No comments:
Post a Comment