summaryrefslogtreecommitdiff
path: root/lib/chef/provider.rb
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2018-02-07 15:03:41 +0100
committerThom May <thom@chef.io>2018-02-12 17:36:23 +0000
commit6f6cfab7e24e3626fa9d21033653730ec7780009 (patch)
tree0140e2effe4d182e532c5ea8ceb4f0f3926e3f7c /lib/chef/provider.rb
parentd6579dfbfee821fca6d8bcbade001fbdb8522300 (diff)
downloadchef-6f6cfab7e24e3626fa9d21033653730ec7780009.tar.gz
actions can have descriptions and be introduced
Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'lib/chef/provider.rb')
-rw-r--r--lib/chef/provider.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/chef/provider.rb b/lib/chef/provider.rb
index 327bf52a13..7cb2301772 100644
--- a/lib/chef/provider.rb
+++ b/lib/chef/provider.rb
@@ -197,6 +197,20 @@ class Chef
@requirements ||= ResourceRequirements.new(@new_resource, run_context)
end
+ def description(description = "NOT_PASSED")
+ if description != "NOT_PASSED"
+ @description = description
+ end
+ @description
+ end
+
+ def introduced(introduced = "NOT_PASSED")
+ if introduced != "NOT_PASSED"
+ @introduced = introduced
+ end
+ @introduced
+ end
+
def converge_by(descriptions, &block)
converge_actions.add_action(descriptions, &block)
end