def create_cookbook(metadata, overrides = {})
        cookbook = Cookbook.new({
          :name        => metadata.name,
          :category    => nil,
          :maintainer  => metadata.maintainer,
          :description => metadata.description,
          :version     => metadata.version
        }.merge(overrides))

        store.add(cookbook)

        cookbook
      end
def create_cookbook(metadata, overrides = {})
        cookbook = Cookbook.new({
          :name        => metadata.name,
          :category    => nil,
          :maintainer  => metadata.maintainer,
          :description => metadata.description,
          :version     => metadata.version
        }.merge(overrides))

        store.add(cookbook)

        cookbook
      end
Create the cookbook from the metadata.

 @param [CommunityZero::Metadata] metadata
   the metadata to create the cookbook from