Class: Roma::Watcher
- Inherits:
-
Object
- Object
- Roma::Watcher
- Defined in:
- lib/roma/tools/sample_watcher.rb,
lib/roma/tools/sample_watcher2.rb,
lib/roma/tools/sample_watcher3.rb
Instance Method Summary collapse
- #get_node_list(nid) ⇒ Object
-
#initialize ⇒ Watcher
constructor
A new instance of Watcher.
- #watch(nid, command) ⇒ Object
Constructor Details
Instance Method Details
#get_node_list(nid) ⇒ Object
15 16 17 |
# File 'lib/roma/tools/sample_watcher.rb', line 15 def get_node_list(nid) @sender.send_command(nid, "nodelist").split(' ') end |
#watch(nid, command) ⇒ Object
15 16 17 |
# File 'lib/roma/tools/sample_watcher2.rb', line 15 def watch(nid, command) ret = @sender.send_command(nid, command, value = nil, :multiplelines_receiver) end |