vagrant
https://github.com/mitchellh/vagrant
Ruby
Vagrant is a tool for building and distributing development environments.
VagrantPlugins::ProviderVirtualBox::Driver::Base#read_host_only_interfaces
Returns a list of available host only interfaces.
Each interface is represented as a Hash with the following details:
{
:name => String, # interface name, e.g. "vboxnet0"
:ip => String, # IP address of the interface, e.g. "172.28.128.1"
:netmask => String, # netmask associated with the interface, e.g. "255.255.255.0"
:status => String, # status of the interface, e.g. "Up", "Down"
}Edit
git clone [email protected]:mitchellh/vagrant.git
cd vagrant
open plugins/providers/virtualbox/driver/base.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-VagrantPlugins--ProviderVirtualBox--Driver--Base-read_host_only_interfaces-for-pr
# Commit to gitgit add plugins/providers/virtualbox/driver/base.rbgit commit -m "better docs for VagrantPlugins::ProviderVirtualBox::Driver::Base#read_host_only_interfaces"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-VagrantPlugins--ProviderVirtualBox--Driver--Base-read_host_only_interfaces-for-pr
hub pull-request
# Celebrate!