vagrant

https://github.com/mitchellh/vagrant

Ruby

Vagrant is a tool for building and distributing development environments.

Vagrant::Util::Busy.busy

Mark a given block of code as a "busy" block of code, which will
register a SIGINT handler for the duration of the block. When a
SIGINT occurs, the `sig_callback` proc will be called. It is up
to the callback to behave properly and exit the application.

Source | Google | Stack overflow

Edit

git clone [email protected]:mitchellh/vagrant.git

cd vagrant

open lib/vagrant/util/busy.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Vagrant--Util--Busy-busy-for-pr


# Commit to git

git add lib/vagrant/util/busy.rbgit commit -m "better docs for Vagrant::Util::Busy.busy"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Vagrant--Util--Busy-busy-for-pr

hub pull-request


# Celebrate!