diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-02-13 06:31:02 -0800 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2015-02-17 09:24:45 -0500 |
commit | c2438711405a34d74c9e9c145edf90ece094a423 (patch) | |
tree | 9d4cf57a1cb4107e2209534b015c91b61bc10452 /lib/chef/file_access_control/unix.rb | |
parent | c020ea0c2a84ff532bdbf55dac3eab34189ede8e (diff) | |
download | chef-c2438711405a34d74c9e9c145edf90ece094a423.tar.gz |
Added comments about class methods
Diffstat (limited to 'lib/chef/file_access_control/unix.rb')
-rw-r--r-- | lib/chef/file_access_control/unix.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/file_access_control/unix.rb b/lib/chef/file_access_control/unix.rb index 81ca6fe281..472f30b752 100644 --- a/lib/chef/file_access_control/unix.rb +++ b/lib/chef/file_access_control/unix.rb @@ -27,12 +27,14 @@ class Chef UID_MAX = (1 << 32) - 10 module ClassMethods + # We want to mix these in as class methods def writable?(path) ::File.writable?(path) end end def self.included(base) + # When this file is mixed in, make sure we also add the class methods base.send :extend, ClassMethods end |