Class: Gaptool::RuncmdCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Gaptool::RuncmdCommand
- Defined in:
- lib/gaptool_client/commands.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
89 90 91 92 93 94 95 96 97 |
# File 'lib/gaptool_client/commands.rb', line 89 def execute params = exclude_hidden? ? {} : { hidden: true } nodes = Gaptool::API.query_nodes(params.merge(instance: instance, role: role, environment: environment)) res = Gaptool::SSH.exec(nodes, [commands.join(' ')], serial: serial?, continue_on_errors: continue_on_errors?, batch_size: batch_size) exit res end |