Class: Ridley::Chef::Cookbook::MinimalMetadata

Inherits:
Metadata
  • Object
show all
Defined in:
lib/ridley/chef/cookbook/metadata.rb

Overview

Chef::Cookbook::MinimalMetadata

MinimalMetadata is a duck type of Cookbook::Metadata, used internally by Chef Server when determining the optimal set of cookbooks for a node.

MinimalMetadata objects typically contain only enough information to solve the cookbook collection for a run list, but not enough to generate the proper response

Constant Summary

Constants inherited from Metadata

Ridley::Chef::Cookbook::Metadata::ATTRIBUTES, Ridley::Chef::Cookbook::Metadata::COMPARISON_FIELDS, Ridley::Chef::Cookbook::Metadata::CONFLICTING, Ridley::Chef::Cookbook::Metadata::DEPENDENCIES, Ridley::Chef::Cookbook::Metadata::DESCRIPTION, Ridley::Chef::Cookbook::Metadata::GROUPINGS, Ridley::Chef::Cookbook::Metadata::LICENSE, Ridley::Chef::Cookbook::Metadata::LONG_DESCRIPTION, Ridley::Chef::Cookbook::Metadata::MAINTAINER, Ridley::Chef::Cookbook::Metadata::MAINTAINER_EMAIL, Ridley::Chef::Cookbook::Metadata::NAME, Ridley::Chef::Cookbook::Metadata::PLATFORMS, Ridley::Chef::Cookbook::Metadata::PROVIDING, Ridley::Chef::Cookbook::Metadata::RECIPES, Ridley::Chef::Cookbook::Metadata::RECOMMENDATIONS, Ridley::Chef::Cookbook::Metadata::REPLACING, Ridley::Chef::Cookbook::Metadata::SUGGESTIONS, Ridley::Chef::Cookbook::Metadata::VERSION

Instance Attribute Summary

Attributes inherited from Metadata

#attributes, #conflicting, #cookbook, #dependencies, #groupings, #platforms, #providing, #recipes, #recommendations, #replacing, #suggestions, #version

Instance Method Summary collapse

Methods inherited from Metadata

#==, #attribute, #conflicts, #depends, #description, from_hash, #from_hash, #grouping, #license, #long_description, #maintainer, #maintainer_email, #name, #provides, #recipe, #recommends, #replaces, #suggests, #supports, #to_hash

Constructor Details

#initialize(name, params) ⇒ MinimalMetadata


546
547
548
549
# File 'lib/ridley/chef/cookbook/metadata.rb', line 546

def initialize(name, params)
  @name = name
  from_hash(params)
end