summaryrefslogtreecommitdiff
path: root/lib/chef/mixin/properties.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/mixin/properties.rb')
-rw-r--r--lib/chef/mixin/properties.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/mixin/properties.rb b/lib/chef/mixin/properties.rb
index 03ee1d66cc..faf047885c 100644
--- a/lib/chef/mixin/properties.rb
+++ b/lib/chef/mixin/properties.rb
@@ -289,6 +289,7 @@ class Chef
def property_is_set?(name)
property = self.class.properties[name.to_sym]
raise ArgumentError, "Property #{name} is not defined in class #{self}" if !property
+
property.is_set?(self)
end
@@ -302,6 +303,7 @@ class Chef
def reset_property(name)
property = self.class.properties[name.to_sym]
raise ArgumentError, "Property #{name} is not defined in class #{self}" if !property
+
property.reset(self)
end
@@ -313,6 +315,7 @@ class Chef
def property_description(name)
property = self.class.properties[name.to_sym]
raise ArgumentError, "Property #{name} is not defined in class #{self}" if !property
+
property.description
end