Class: AgentCliRuntime::CapturedResult

Inherits:
Data
  • Object
show all
Defined in:
lib/agent_cli_runtime/values.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stdout:, stderr:, termination:, inspection_output: nil) ⇒ CapturedResult

Returns a new instance of CapturedResult.



432
433
434
435
436
437
438
439
440
441
442
443
444
# File 'lib/agent_cli_runtime/values.rb', line 432

def initialize(stdout:, stderr:, termination:, inspection_output: nil)
  unless termination.is_a?(TerminationEvidence)
    raise ArgumentError, "termination must be TerminationEvidence"
  end

  super(
    stdout: Immutable.string(stdout),
    stderr: Immutable.string(stderr),
    termination: termination,
    inspection_output:
      inspection_output.nil? ? nil : Immutable.string(inspection_output)
  )
end

Instance Attribute Details

#inspection_outputObject (readonly)

Returns the value of attribute inspection_output

Returns:

  • (Object)

    the current value of inspection_output



429
430
431
# File 'lib/agent_cli_runtime/values.rb', line 429

def inspection_output
  @inspection_output
end

#stderrObject (readonly)

Returns the value of attribute stderr

Returns:

  • (Object)

    the current value of stderr



429
430
431
# File 'lib/agent_cli_runtime/values.rb', line 429

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout

Returns:

  • (Object)

    the current value of stdout



429
430
431
# File 'lib/agent_cli_runtime/values.rb', line 429

def stdout
  @stdout
end

#terminationObject (readonly)

Returns the value of attribute termination

Returns:

  • (Object)

    the current value of termination



429
430
431
# File 'lib/agent_cli_runtime/values.rb', line 429

def termination
  @termination
end