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.



37
38
39
40
# File 'lib/dapp/builder/chef/cookbook_metadata.rb', line 37

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

Instance Attribute Details

#name ⇒ Object

Returns the value of attribute name.



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

def name
  @name
end

#path ⇒ Object (readonly)

Parser



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

def path
  @path
end

#version ⇒ Object

Returns the value of attribute version.



35
36
37
# File 'lib/dapp/builder/chef/cookbook_metadata.rb', line 35

def version
  @version
end