Class: Gaptool::RuncmdCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Gaptool::RuncmdCommand
- Defined in:
- lib/gaptool-client.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/gaptool-client.rb', line 102 def execute if !instance.nil? nodes = [$api.getonenode(instance)] else nodes = $api.getenvroles(role, environment) end nodes.peach do |node| commands = [ command.join(' ') ] sshcmd(node, commands) end end |