summaryrefslogtreecommitdiff
path: root/lib/chef/resources.rb
diff options
context:
space:
mode:
authorGary Ewan Park <gep13@gep13.co.uk>2019-05-23 12:22:59 -0700
committerGary Ewan Park <gep13@gep13.co.uk>2019-05-27 21:13:32 +0100
commit71fe79cae89a57b37f6750466e96f49eedc9097b (patch)
tree124abcd346170cd49b38b5303045288fe466b8ad /lib/chef/resources.rb
parent819307636de80266c6eb7e2072839e47f2dd4dbe (diff)
downloadchef-71fe79cae89a57b37f6750466e96f49eedc9097b.tar.gz
(GH-8580) Add ability to toggle Chocolatey feature
Add the ability to enable and disable a named Chocolatey feature by creating a new Chef resource named chocolatey_feature. This accepts a single property either from feature_name or directly from name attribute then, based on the defined action, will either enable or disable that feature. Resource inspects the current state of the chocolatey.config in order to decide whether a change is required or not. Signed-off-by: Gary Ewan Park <gep13@gep13.co.uk>
Diffstat (limited to 'lib/chef/resources.rb')
-rw-r--r--lib/chef/resources.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/resources.rb b/lib/chef/resources.rb
index 11003e304c..d76f1bbf06 100644
--- a/lib/chef/resources.rb
+++ b/lib/chef/resources.rb
@@ -29,6 +29,7 @@ require_relative "resource/cookbook_file"
require_relative "resource/chef_gem"
require_relative "resource/chef_handler"
require_relative "resource/chocolatey_config"
+require_relative "resource/chocolatey_feature"
require_relative "resource/chocolatey_package"
require_relative "resource/chocolatey_source"
require_relative "resource/cron"