summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2018-06-05 21:02:55 -0700
committerNoah Kantrowitz <noah@coderanger.net>2018-06-05 21:02:55 -0700
commit3078ab994c9ddf8a4d6439012e89216a855caec4 (patch)
treef014c50db1d72a34f4f1e66f22ada03d31058a59
parent28d097d48a346826806186a78b17f520c8533c1a (diff)
downloadchef-3078ab994c9ddf8a4d6439012e89216a855caec4.tar.gz
Expose the resource preview flag in the exporter for use in docs.
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
-rw-r--r--lib/chef/resource_inspector.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/resource_inspector.rb b/lib/chef/resource_inspector.rb
index bbec03ffd6..10fa42c842 100644
--- a/lib/chef/resource_inspector.rb
+++ b/lib/chef/resource_inspector.rb
@@ -43,6 +43,7 @@ module ResourceInspector
data[:actions] = resource.allowed_actions
data[:examples] = resource.examples
data[:introduced] = resource.introduced
+ data[:preview] = resource.preview_resource
properties = unless complete
resource.properties.reject { |_, k| k.options[:declared_in] == Chef::Resource }