Class: Dmatrix::Executor

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/dmatrix/executor.rb

Defined Under Namespace

Classes: Result

Instance Method Summary collapse

Constructor Details

#initialize(combination:, run_command:, log_dir:, executor: Kernel.method(:system)) ⇒ Executor

Returns a new instance of Executor.



9
10
11
12
13
14
# File 'lib/dmatrix/executor.rb', line 9

def initialize(combination:, run_command:, log_dir:, executor: Kernel.method(:system))
  @combination = combination
  @run_command = run_command
  @log_dir = log_dir
  @executor = executor
end

Instance Method Details

#build_runObject



16
17
18
19
20
21
22
23
24
25
# File 'lib/dmatrix/executor.rb', line 16

def build_run
  run_success = false
  build_success = build

  if build_success
    run_success = run
  end

  Result.new(build_success, run_success, tag)
end