vagrant

https://github.com/mitchellh/vagrant

Ruby

Vagrant is a tool for building and distributing development environments.

VagrantPlugins::GuestLinux::Cap::NetworkInterfaces.network_interfaces

Get network interfaces as a list. The result will be something like:

  eth0\nenp0s8\nenp0s9

Source | Google | Stack overflow

Edit

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

cd vagrant

open plugins/guests/linux/cap/network_interfaces.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-VagrantPlugins--GuestLinux--Cap--NetworkInterfaces-network_interfaces-for-pr


# Commit to git

git add plugins/guests/linux/cap/network_interfaces.rbgit commit -m "better docs for VagrantPlugins::GuestLinux::Cap::NetworkInterfaces.network_interfaces"


# 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--GuestLinux--Cap--NetworkInterfaces-network_interfaces-for-pr

hub pull-request


# Celebrate!