Class: Dapp::Builder::Chef::CookbookMetadata
- Inherits:
-
Object
- Object
- Dapp::Builder::Chef::CookbookMetadata
- Defined in:
- lib/dapp/builder/chef/cookbook_metadata.rb
Overview
CookbookMetadata
Defined Under Namespace
Classes: Parser
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Parser.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
- #depends ⇒ Object
-
#initialize(path) ⇒ CookbookMetadata
constructor
A new instance of CookbookMetadata.
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
#name ⇒ Object
Returns the value of attribute name.
38 39 40 |
# File 'lib/dapp/builder/chef/cookbook_metadata.rb', line 38 def name @name end |
#path ⇒ Object (readonly)
Parser
37 38 39 |
# File 'lib/dapp/builder/chef/cookbook_metadata.rb', line 37 def path @path end |
#version ⇒ Object
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
#depends ⇒ Object
41 42 43 |
# File 'lib/dapp/builder/chef/cookbook_metadata.rb', line 41 def depends @depends ||= [] end |