Class: Populus::Node
- Inherits:
-
Object
- Object
- Populus::Node
- Defined in:
- lib/populus/node.rb
Class Method Summary collapse
Class Method Details
.register_host(hostname) ⇒ Object
10 11 12 |
# File 'lib/populus/node.rb', line 10 def register_host(hostname) registry[hostname] = gen_host(hostname) end |
.registry ⇒ Object
6 7 8 |
# File 'lib/populus/node.rb', line 6 def registry @nodes ||= {} end |