vagrant

https://github.com/mitchellh/vagrant

Ruby

Vagrant is a tool for building and distributing development environments.

VagrantPlugins::ProviderVirtualBox::Driver::Base#read_dhcp_servers

Returns a list of configured DHCP servers

Each DHCP server is represented as a Hash with the following details:

{
 :network => String, # name of the associated network interface as
                     #   parsed from the NetworkName, e.g. "vboxnet0"
 :ip      => String, # IP address of the DHCP server, e.g. "172.28.128.2"
 :lower   => String, # lower IP address of the DHCP lease range, e.g. "172.28.128.3"
 :upper   => String, # upper IP address of the DHCP lease range, e.g. "172.28.128.254"
}

Source | Google | Stack overflow

Edit

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

cd vagrant

open plugins/providers/virtualbox/driver/base.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-VagrantPlugins--ProviderVirtualBox--Driver--Base-read_dhcp_servers-for-pr


# Commit to git

git add plugins/providers/virtualbox/driver/base.rbgit commit -m "better docs for VagrantPlugins::ProviderVirtualBox::Driver::Base#read_dhcp_servers"


# 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--Driver--Base-read_dhcp_servers-for-pr

hub pull-request


# Celebrate!