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.



45
46
47
48
# File 'lib/dapp/builder/chef/cookbook_metadata.rb', line 45

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#pathObject (readonly)

Parser



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

def path
  @path
end

#versionObject

Returns the value of attribute version.



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

def version
  @version
end

Instance Method Details

#dependsObject



41
42
43
# File 'lib/dapp/builder/chef/cookbook_metadata.rb', line 41

def depends
  @depends ||= []
end