vagrant
https://github.com/mitchellh/vagrant
Ruby
Vagrant is a tool for building and distributing development environments.
Vagrant::MachineIndex#get
Accesses a machine by UUID and returns a {MachineIndex::Entry}
The entry returned is locked and can't be read again or updated by
this process or any other. To unlock the machine, call {#release}
with the entry.
You can only {#set} an entry (update) when the lock is held.Edit
git clone [email protected]:mitchellh/vagrant.git
cd vagrant
open lib/vagrant/machine_index.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Vagrant--MachineIndex-get-for-pr
# Commit to gitgit add lib/vagrant/machine_index.rbgit commit -m "better docs for Vagrant::MachineIndex#get"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Vagrant--MachineIndex-get-for-pr
hub pull-request
# Celebrate!