Class: Dapp::Builder::Chef::CookbookMetadata

Inherits:
Object
  • Object
show all
Defined in:
lib/dapp/builder/chef/cookbook_metadata.rb

Overview

CookbookMetadata

Defined Under Namespace

Classes: Parser

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ CookbookMetadata

Returns a new instance of CookbookMetadata.



32
33
34
35
# File 'lib/dapp/builder/chef/cookbook_metadata.rb', line 32

def initialize(path)
  @path = path
  @parser = Parser.new(self)
end

Instance Attribute Details

#name ⇒ Object

Returns the value of attribute name.



29
30
31
# File 'lib/dapp/builder/chef/cookbook_metadata.rb', line 29

def name
  @name
end

#path ⇒ Object (readonly)

Parser



28
29
30
# File 'lib/dapp/builder/chef/cookbook_metadata.rb', line 28

def path
  @path
end

#version ⇒ Object

Returns the value of attribute version.



30
31
32
# File 'lib/dapp/builder/chef/cookbook_metadata.rb', line 30

def version
  @version
end