chef
https://github.com/opscode/chef
Ruby
A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
WEBrick::Utils#create_listeners
Creates TCP server sockets bound to +address+:+port+ and returns them. It will create IPV4 and IPV6 sockets on all interfaces. NOTE: We need to monkey patch this method because create_listeners on Windows with Ruby > 2.0.0 does not raise an error if we're already listening on a port.
Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/monkey_patches/webrick-utils.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-WEBrick--Utils-create_listeners-for-pr
# Commit to gitgit add lib/chef/monkey_patches/webrick-utils.rbgit commit -m "better docs for WEBrick::Utils#create_listeners"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-WEBrick--Utils-create_listeners-for-pr
hub pull-request
# Celebrate!