summaryrefslogtreecommitdiff
path: root/lib/chef/resource/ohai_hint.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/ohai_hint.rb')
-rw-r--r--lib/chef/resource/ohai_hint.rb14
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/chef/resource/ohai_hint.rb b/lib/chef/resource/ohai_hint.rb
index 30d7a3bd0c..a2f06acaac 100644
--- a/lib/chef/resource/ohai_hint.rb
+++ b/lib/chef/resource/ohai_hint.rb
@@ -1,5 +1,5 @@
#
-# Copyright:: Copyright 2011-2018, Chef Software, Inc.
+# Copyright:: Copyright 2011-2020, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -33,6 +33,7 @@ class Chef
property :content, Hash,
description: "Values to include in the hint file."
+ # override compile_time property to default to true
property :compile_time, [TrueClass, FalseClass],
description: "Determines whether or not the resource is executed during the compile time phase.",
default: true, desired_state: false
@@ -83,17 +84,6 @@ class Chef
JSON.pretty_generate(content)
end
end
-
- # this resource forces itself to run at compile_time
- #
- # @return [void]
- def after_created
- return unless compile_time
-
- Array(action).each do |action|
- run_action(action)
- end
- end
end
end
end