vagrant

https://github.com/mitchellh/vagrant

Ruby

Vagrant is a tool for building and distributing development environments.

Vagrant::MachineIndex#each

Iterate over every machine in the index. The yielded {Entry} objects
will NOT be locked, so you'll have to call {#get} manually to acquire
the lock on them.

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


# Commit to git

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


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

hub pull-request


# Celebrate!