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::Windows#acls_equal
Compare the actual ACL on a resource with the ACL we want. This ignores explicit ACLs on the target, and does mask prediction (if you set GENERIC_WRITE, Windows will flip on a whole bunch of other rights on the file when you save the ACL)
Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/file_access_control/windows.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--FileAccessControl--Windows-acls_equal-for-pr
# Commit to gitgit add lib/chef/file_access_control/windows.rbgit commit -m "better docs for Chef::FileAccessControl::Windows#acls_equal"
# 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--Windows-acls_equal-for-pr
hub pull-request
# Celebrate!