vagrant

https://github.com/mitchellh/vagrant

Ruby

Vagrant is a tool for building and distributing development environments.

Vagrant::MachineIndex::Entry#valid?

Returns boolean true if this entry appears to be valid.
The critera for being valid:

  * Vagrantfile directory exists
  * Vagrant environment contains a machine with this
    name and provider.

This method is _slow_. It should be used with care.

Source | Google | Stack overflow

Edit

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

cd vagrant

open lib/vagrant/machine_index.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Vagrant--MachineIndex--Entry-valid--for-pr


# Commit to git

git add lib/vagrant/machine_index.rbgit commit -m "better docs for Vagrant::MachineIndex::Entry#valid?"


# 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--MachineIndex--Entry-valid--for-pr

hub pull-request


# Celebrate!