Sha256: ee35910c36a91d224a137270a24ce392492bc8d483ce2e38f551f74fd500f184

Contents?: true

Size: 400 Bytes

Versions: 3

Compression:

Stored size: 400 Bytes

Contents

# frozen_string_literal: true

require_relative "executor/context"
require_relative "executor/concurrent"

module CobraCommander
  # Execute a command on all given components
  module Executor
    def self.exec(components:, command:, concurrency:, status_output:)
      Concurrent.new(components, concurrency: concurrency, spin_output: status_output)
                .exec(command)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cobra_commander-0.15.1 lib/cobra_commander/executor.rb
cobra_commander-0.15.0 lib/cobra_commander/executor.rb
cobra_commander-0.12.0 lib/cobra_commander/executor.rb