vagrant
https://github.com/mitchellh/vagrant
Ruby
Vagrant is a tool for building and distributing development environments.
Vagrant::Vagrantfile#primary_machine_name
Returns the name of the machine that is designated as the "primary." In the case of a single-machine environment, this is just the single machine name. In the case of a multi-machine environment, then this is the machine that is marked as primary, or nil if no primary machine was specified.
Edit
git clone [email protected]:mitchellh/vagrant.git
cd vagrant
open lib/vagrant/vagrantfile.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Vagrant--Vagrantfile-primary_machine_name-for-pr
# Commit to gitgit add lib/vagrant/vagrantfile.rbgit commit -m "better docs for Vagrant::Vagrantfile#primary_machine_name"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Vagrant--Vagrantfile-primary_machine_name-for-pr
hub pull-request
# Celebrate!