Parent

Methods

Class/Module Index [+]

Quicksearch

ChefZero::CookbookData::PretendCookbookMetadata

Handles loading configuration values from a Chef config file

@author Justin Campbell <justin.campbell@riotgames.com>

Public Class Methods

new(cookbook) click to toggle source

@param [String] path

# File lib/chef_zero/cookbook_data.rb, line 68
def initialize(cookbook)
  self.name(cookbook.name)
  self.recipes(cookbook.fully_qualified_recipe_names)
  %(attributes grouping dependencies supports recommendations suggestions conflicting providing replacing recipes).each do |hash_arg|
    self[hash_arg.to_sym] = Hashie::Mash.new
  end
end

Public Instance Methods

from_json(json) click to toggle source
# File lib/chef_zero/cookbook_data.rb, line 76
def from_json(json)
  self.merge!(JSON.parse(json))
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.