Class: SousChef::NodeManager
- Inherits:
-
Object
- Object
- SousChef::NodeManager
- Defined in:
- lib/sous-chef/node_manager.rb
Instance Attribute Summary collapse
-
#nodes ⇒ Object
readonly
Returns the value of attribute nodes.
-
#parser ⇒ Object
readonly
Returns the value of attribute parser.
Instance Method Summary collapse
-
#initialize(config_file) ⇒ NodeManager
constructor
A new instance of NodeManager.
Constructor Details
#initialize(config_file) ⇒ NodeManager
Returns a new instance of NodeManager.
4 5 6 7 8 |
# File 'lib/sous-chef/node_manager.rb', line 4 def initialize(config_file) @parser = SousChef::Parser.new(config_file) @nodes = {} initialize_node_collections end |
Instance Attribute Details
#nodes ⇒ Object (readonly)
Returns the value of attribute nodes.
2 3 4 |
# File 'lib/sous-chef/node_manager.rb', line 2 def nodes @nodes end |
#parser ⇒ Object (readonly)
Returns the value of attribute parser.
2 3 4 |
# File 'lib/sous-chef/node_manager.rb', line 2 def parser @parser end |