chef

https://github.com/opscode/chef

Ruby

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

Chef::FileAccessControl#initialize

FileAccessControl objects set the owner, group and mode of +file+ to
the values specified by +resource+. +file+ is completely independent
of any file or path attribute on +resource+, so it is possible to set
access control settings on a tempfile (for example).
=== Arguments:
resource:   probably a Chef::Resource::File object (or subclass), but
            this is not required. Must respond to +owner+, +group+,
            and +mode+
file:       The file whose access control settings you wish to modify,
            given as a String.

TODO requiring current_resource will break cookbook_file template_file

Source | Google | Stack overflow

Edit

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

cd chef

open lib/chef/file_access_control.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chef--FileAccessControl-initialize-for-pr


# Commit to git

git add lib/chef/file_access_control.rbgit commit -m "better docs for Chef::FileAccessControl#initialize"


# 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--FileAccessControl-initialize-for-pr

hub pull-request


# Celebrate!