Adoptable Cookbooks List

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

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.