vagrant

https://github.com/mitchellh/vagrant

Ruby

Vagrant is a tool for building and distributing development environments.

Vagrant.has_plugin?

This checks if a plugin with the given name is available (installed
and enabled). This can be used from the Vagrantfile to easily branch
based on plugin availability.

Source | Google | Stack overflow

Edit

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

cd vagrant

open lib/vagrant.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Vagrant-has_plugin--for-pr


# Commit to git

git add lib/vagrant.rbgit commit -m "better docs for Vagrant.has_plugin?"


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

hub pull-request


# Celebrate!