summaryrefslogtreecommitdiff
path: root/lib/chef/file_access_control/unix.rb
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-02-13 06:31:02 -0800
committerBryan McLellan <btm@opscode.com>2015-02-17 09:24:45 -0500
commitc2438711405a34d74c9e9c145edf90ece094a423 (patch)
tree9d4cf57a1cb4107e2209534b015c91b61bc10452 /lib/chef/file_access_control/unix.rb
parentc020ea0c2a84ff532bdbf55dac3eab34189ede8e (diff)
downloadchef-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.rb2
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