diff options
author | Tim Smith <tsmith@chef.io> | 2018-05-16 16:18:22 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-05-16 16:18:22 -0700 |
commit | ea016bda0f9c1670ac7ce1471ae10a50552d7f3e (patch) | |
tree | 8842980891a0c6065bf4889317fef30672da3ebd | |
parent | bf0864355fee3586ba80a335a761a2c43d317ce1 (diff) | |
download | chef-describe_default_action.tar.gz |
Add default_action to the resource inspectordescribe_default_action
This is a very useful thing to know about a resource.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/resource_inspector.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/resource_inspector.rb b/lib/chef/resource_inspector.rb index b112cb0565..f4c745c080 100644 --- a/lib/chef/resource_inspector.rb +++ b/lib/chef/resource_inspector.rb @@ -28,6 +28,7 @@ module ResourceInspector data = {} data[:description] = resource.description # data[:deprecated] = resource.deprecated || false + data[:default_action] = resource.default_action data[:actions] = resource.allowed_actions data[:examples] = resource.examples data[:introduced] = resource.introduced |