vagrant

https://github.com/mitchellh/vagrant

Ruby

Vagrant is a tool for building and distributing development environments.

VagrantPlugins::ProviderVirtualBox::Cap.forwarded_ports

Reads the forwarded ports that currently exist on the machine
itself. This raises an exception if the machine isn't running.

This also may not match up with configured forwarded ports, because
Vagrant auto port collision fixing may have taken place.

Source | Google | Stack overflow

Edit

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

cd vagrant

open plugins/providers/virtualbox/cap.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-VagrantPlugins--ProviderVirtualBox--Cap-forwarded_ports-for-pr


# Commit to git

git add plugins/providers/virtualbox/cap.rbgit commit -m "better docs for VagrantPlugins::ProviderVirtualBox::Cap.forwarded_ports"


# 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--Cap-forwarded_ports-for-pr

hub pull-request


# Celebrate!