chef

https://github.com/opscode/chef

Ruby

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

Chef::Provider::WindowsEnv#delete_element

e.g. delete a PATH element

==== Returns
<true>:: If we handled the element case and caller should not delete the key
<false>:: Caller should delete the key, either no :delim was specific or value was empty
          after we removed the element.

Source | Google | Stack overflow

Edit

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

cd chef

open lib/chef/provider/windows_env.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chef--Provider--WindowsEnv-delete_element-for-pr


# Commit to git

git add lib/chef/provider/windows_env.rbgit commit -m "better docs for Chef::Provider::WindowsEnv#delete_element"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Chef--Provider--WindowsEnv-delete_element-for-pr

hub pull-request


# Celebrate!