cookbook 'compat_resource', '= 12.5.1'
The compat_resource cookbook has been deprecated
Author provided reason for deprecation:
The compat_resource cookbook has been deprecated and is no longer being maintained by its authors. Use of the compat_resource cookbook is no longer recommended.
compat_resource
(56) Versions
12.5.1
-
-
12.19.1
-
12.19.0
-
12.16.3
-
12.16.2
-
12.16.1
-
12.16.0
-
12.14.7
-
12.14.6
-
12.14.5
-
12.14.4
-
12.14.3
-
12.14.2
-
12.14.1
-
12.14.0
-
12.13.38
-
12.13.37
-
12.10.7
-
12.10.6
-
12.10.5
-
12.10.4
-
12.10.3
-
12.10.2
-
12.10.1
-
12.9.1
-
12.9.0
-
12.8.0
-
12.7.3
-
12.7.1
-
12.7.0
-
12.5.26
-
12.5.25
-
12.5.24
-
12.5.23
-
12.5.22
-
12.5.21
-
12.5.20
-
12.5.19
-
12.5.18
-
12.5.17
-
12.5.16
-
12.5.15
-
12.5.14
-
12.5.13
-
12.5.12
-
12.5.11
-
12.5.10
-
12.5.9
-
12.5.8
-
12.5.7
-
12.5.6
-
12.5.5
-
12.5.4
-
12.5.3
-
12.5.2
-
12.5.1
-
12.5.0
Follow30
- 12.19.1
- 12.19.0
- 12.16.3
- 12.16.2
- 12.16.1
- 12.16.0
- 12.14.7
- 12.14.6
- 12.14.5
- 12.14.4
- 12.14.3
- 12.14.2
- 12.14.1
- 12.14.0
- 12.13.38
- 12.13.37
- 12.10.7
- 12.10.6
- 12.10.5
- 12.10.4
- 12.10.3
- 12.10.2
- 12.10.1
- 12.9.1
- 12.9.0
- 12.8.0
- 12.7.3
- 12.7.1
- 12.7.0
- 12.5.26
- 12.5.25
- 12.5.24
- 12.5.23
- 12.5.22
- 12.5.21
- 12.5.20
- 12.5.19
- 12.5.18
- 12.5.17
- 12.5.16
- 12.5.15
- 12.5.14
- 12.5.13
- 12.5.12
- 12.5.11
- 12.5.10
- 12.5.9
- 12.5.8
- 12.5.7
- 12.5.6
- 12.5.5
- 12.5.4
- 12.5.3
- 12.5.2
- 12.5.1
- 12.5.0
Backports functionality introduced in the latest chef-client releases to any chef-client from 12.1 onwards
cookbook 'compat_resource', '= 12.5.1', :supermarket
knife supermarket install compat_resource
knife supermarket download compat_resource
compat_resource cookbook
This cookbook brings the custom resource syntax from Chef 12.5 down to earlier
versions (12.0-12.5).
This cookbook is early days. It has some travis tests verifying the test matrix of rubies and chef versions.
Usage
To use this cookbook, put depends 'compat_resource'
in the metadata.rb of your cookbook. Once this is done, you can use all the new custom resource features to define resources. It Just Works.
For example, if you create resources/myresource.rb, myresource can use property
, load_current_value
and action
(no need to create a provider). If you want to create Resource classes directly, extend from ChefCompat::Resource
instead of Chef::Resource
. Properties, current value loading, converge_if_changed, and resource_name will all function the same across versions.
Custom Resources?
Curious about how to use custom resources? Here are the 12.5 docs:
- Docs: https://docs.chef.io/custom_resources.html
- Slides: https://docs.chef.io/decks/custom_resources.html
Contributing
Try it! File issues or fork and submit a pull request at https://github.com/jkeiser/compat_resource if you see issues.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
Foodcritic Metric
12.5.1 passed this metric
12.5.1 passed this metric