vagrant

https://github.com/mitchellh/vagrant

Ruby

Vagrant is a tool for building and distributing development environments.

Vagrant::Box#in_use?

Checks if this box is in use according to the given machine
index and returns the entries that appear to be using the box.

The entries returned, if any, are not tested for validity
with {MachineIndex::Entry#valid?}, so the caller should do that
if the caller cares.

Source | Google | Stack overflow

Edit

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

cd vagrant

open lib/vagrant/box.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Vagrant--Box-in_use--for-pr


# Commit to git

git add lib/vagrant/box.rbgit commit -m "better docs for Vagrant::Box#in_use?"


# 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--Box-in_use--for-pr

hub pull-request


# Celebrate!