vagrant

https://github.com/mitchellh/vagrant

Ruby

Vagrant is a tool for building and distributing development environments.

Vagrant::Plugin::V2::Provider.installed?

This is called early, before a machine is instantiated, to check
if this provider is installed. This should return true or false.

If the provider is not installed and Vagrant determines it is
able to install this provider, then it will do so. Installation
is done by calling Environment.install_provider.

If Environment.can_install_provider? returns false, then an error
will be shown to the user.

Source | Google | Stack overflow

Edit

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

cd vagrant

open lib/vagrant/plugin/v2/provider.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Vagrant--Plugin--V2--Provider-installed--for-pr


# Commit to git

git add lib/vagrant/plugin/v2/provider.rbgit commit -m "better docs for Vagrant::Plugin::V2::Provider.installed?"


# 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--Plugin--V2--Provider-installed--for-pr

hub pull-request


# Celebrate!