Class: ChefZero::ChefData::CookbookData::PretendCookbook

Inherits:
Object
  • Object
show all
Defined in:
lib/chef_zero/chef_data/cookbook_data.rb

Overview

Just enough cookbook to make a Metadata object

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, fully_qualified_recipe_names) ⇒ PretendCookbook

Returns a new instance of PretendCookbook.



166
167
168
169
# File 'lib/chef_zero/chef_data/cookbook_data.rb', line 166

def initialize(name, fully_qualified_recipe_names)
  @name = name
  @fully_qualified_recipe_names = fully_qualified_recipe_names
end

Instance Attribute Details

#fully_qualified_recipe_namesObject (readonly)

Returns the value of attribute fully_qualified_recipe_names.



170
171
172
# File 'lib/chef_zero/chef_data/cookbook_data.rb', line 170

def fully_qualified_recipe_names
  @fully_qualified_recipe_names
end

#nameObject (readonly)

Returns the value of attribute name.



170
171
172
# File 'lib/chef_zero/chef_data/cookbook_data.rb', line 170

def name
  @name
end