Gem to allow a controlled quit from a command-line application.
Add this line to your application's Gemfile:
gem 'controlled_quit'
And then execute:
$ bundle
Or install it yourself as:
$ gem install controlled_quit
ControlledQuit.protect do |quitter|
units_of_work.each do |unit|
unit.do_work_and_serialize
quitter.quit_if_requested
end
end
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request