vagrant

https://github.com/mitchellh/vagrant

Ruby

Vagrant is a tool for building and distributing development environments.

VagrantPlugins::ProviderVirtualBox::Action::Network#assign_interface_numbers

-----------------------------------------------------------------
Misc. helpers
-----------------------------------------------------------------
Assigns the actual interface number of a network based on the
enabled NICs on the virtual machine.

This interface number is used by the guest to configure the
NIC on the guest VM.

The networks are modified in place by adding an ":interface"
field to each.

Source | Google | Stack overflow

Edit

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

cd vagrant

open plugins/providers/virtualbox/action/network.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-VagrantPlugins--ProviderVirtualBox--Action--Network-assign_interface_numbers-for-pr


# Commit to git

git add plugins/providers/virtualbox/action/network.rbgit commit -m "better docs for VagrantPlugins::ProviderVirtualBox::Action::Network#assign_interface_numbers"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-VagrantPlugins--ProviderVirtualBox--Action--Network-assign_interface_numbers-for-pr

hub pull-request


# Celebrate!