vagrant

https://github.com/mitchellh/vagrant

Ruby

Vagrant is a tool for building and distributing development environments.

Vagrant::Box#has_update?

Checks if the box has an update and returns the metadata, version,
and provider. If the box doesn't have an update that satisfies the
constraints, it will return nil.

This will potentially make a network call if it has to load the
metadata from the network.

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-has_update--for-pr


# Commit to git

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


# 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-has_update--for-pr

hub pull-request


# Celebrate!