Class: SousChef::NodeManager

Inherits:
Object
  • Object
show all
Defined in:
lib/sous-chef/node_manager.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nodesObject (readonly)

Returns the value of attribute nodes.



2
3
4
# File 'lib/sous-chef/node_manager.rb', line 2

def nodes
  @nodes
end

#parserObject (readonly)

Returns the value of attribute parser.



2
3
4
# File 'lib/sous-chef/node_manager.rb', line 2

def parser
  @parser
end