chef

https://github.com/opscode/chef

Ruby

A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.

ChefConfig::Config.export_proxy

Builds a proxy uri and exports it to the appropriate environment variables. Examples:
  http://username:password@hostname:port
  https://username@hostname:port
  ftp://hostname:port
when
  scheme = "http", "https", or "ftp"
  hostport = hostname:port or scheme://hostname:port
  user = username
  pass = password

Source | Google | Stack overflow

Edit

git clone [email protected]:opscode/chef.git

cd chef

open chef-config/lib/chef-config/config.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ChefConfig--Config-export_proxy-for-pr


# Commit to git

git add chef-config/lib/chef-config/config.rbgit commit -m "better docs for ChefConfig::Config.export_proxy"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-ChefConfig--Config-export_proxy-for-pr

hub pull-request


# Celebrate!