Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

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.

Select Badges

Select Supported Platforms

Select Status


resource_from_hash (11) Versions 1.3.0

Installs/Configures resource_from_hash

cookbook 'resource_from_hash', '= 1.3.0', :supermarket
cookbook 'resource_from_hash', '= 1.3.0'
knife supermarket install resource_from_hash
knife supermarket download resource_from_hash
Quality -%


This cookbook provides a resource that, given a hash, builds a resource based on that hash.

Although fairly abstract, this resource has a simple set of attributes:

  1. hash, which accepts a Hash of attribute name:value pairs for the new resource.
  2. res, which is the resource type to make.

For convenience, the resource provides two actions:

  • do, which acts on the resource
  • log, which logs the resource and doesn't act

The following is a basic example of usage:

data = {
  :resource => "package",
  :name => "git",
  :attributes => {
    :action => :upgrade


resource_from_hash "test" do
  hash data
  action :do

Author:: OSU Open Source Lab (

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

No quality metric results found