chef

https://github.com/opscode/chef

Ruby

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

Chef::ScanAccessControl#set_owner

Set the owner attribute of +current_resource+ to whatever the current
state is. Attempts to match the format given in new_resource: if the
new_resource specifies the owner as a string, the username for the uid
will be looked up and owner will be set to the username, and vice versa.

Source | Google | Stack overflow

Edit

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

cd chef

open lib/chef/scan_access_control.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chef--ScanAccessControl-set_owner-for-pr


# Commit to git

git add lib/chef/scan_access_control.rbgit commit -m "better docs for Chef::ScanAccessControl#set_owner"


# 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--ScanAccessControl-set_owner-for-pr

hub pull-request


# Celebrate!