chef

https://github.com/opscode/chef

Ruby

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

Chef::Client#do_windows_admin_check

Check if the user has Administrator privileges on windows.

Throws an error if the user is not an admin, and
`Chef::Config.fatal_windows_admin_check` is true.

Source | Google | Stack overflow

Edit

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

cd chef

open lib/chef/client.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chef--Client-do_windows_admin_check-for-pr


# Commit to git

git add lib/chef/client.rbgit commit -m "better docs for Chef::Client#do_windows_admin_check"


# 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--Client-do_windows_admin_check-for-pr

hub pull-request


# Celebrate!