Module: CobraCommander::Executor

Defined in:
lib/cobra_commander/executor.rb,
lib/cobra_commander/executor/context.rb,
lib/cobra_commander/executor/concurrent.rb

Overview

Execute a command on all given components

Defined Under Namespace

Classes: Concurrent, Context

Class Method Summary collapse

Class Method Details

.exec(components:, command:, concurrency:, status_output:) ⇒ Object



9
10
11
12
# File 'lib/cobra_commander/executor.rb', line 9

def self.exec(components:, command:, concurrency:, status_output:)
  Concurrent.new(components, concurrency: concurrency, spin_output: status_output)
            .exec(command)
end