vagrant

https://github.com/mitchellh/vagrant

Ruby

Vagrant is a tool for building and distributing development environments.

Vagrant::Util::NetworkIP#network_address

Returns the network address of the given IP and subnet.

If the IP address is an IPv6 address, subnet should be a prefix
length such as "64".

Source | Google | Stack overflow

Edit

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

cd vagrant

open lib/vagrant/util/network_ip.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Vagrant--Util--NetworkIP-network_address-for-pr


# Commit to git

git add lib/vagrant/util/network_ip.rbgit commit -m "better docs for Vagrant::Util::NetworkIP#network_address"


# 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--Util--NetworkIP-network_address-for-pr

hub pull-request


# Celebrate!