def initialize(cookbook=nil, maintainer='YOUR_COMPANY_NAME', maintainer_email='YOUR_EMAIL', license='none')
@cookbook = cookbook
@name = cookbook ? cookbook.name : ""
@long_description = ""
self.maintainer(maintainer)
self.maintainer_email(maintainer_email)
self.license(license)
self.description('A fabulous new cookbook')
@platforms = Mash.new
@dependencies = Mash.new
@recommendations = Mash.new
@suggestions = Mash.new
@conflicting = Mash.new
@providing = Mash.new
@replacing = Mash.new
@attributes = Mash.new
@groupings = Mash.new
@recipes = Mash.new
@version = Version.new "0.0.0"
if cookbook
@recipes = cookbook.fully_qualified_recipe_names.inject({}) do |r, e|
e = self.name if e =~ /::default$/
r[e] = ""
self.provides e
r
end
end
end