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_fileEdit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/file_access_control.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--FileAccessControl-initialize-for-pr
# Commit to gitgit add lib/chef/file_access_control.rbgit commit -m "better docs for Chef::FileAccessControl#initialize"
# Open pull requestgem 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!