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.

Source | Google | Stack overflow

Edit

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

cd vagrant

open lib/vagrant/vagrantfile.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Vagrant--Vagrantfile-primary_machine_name-for-pr


# Commit to git

git add lib/vagrant/vagrantfile.rbgit commit -m "better docs for Vagrant::Vagrantfile#primary_machine_name"


# 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--Vagrantfile-primary_machine_name-for-pr

hub pull-request


# Celebrate!