Class: Lemans::Environments::Base::ExecResult

Inherits:
Data
  • Object
show all
Defined in:
lib/lemans/environments/base.rb

Overview

Backends interleave a command's streams before we ever see them, so one output field is the honest shape.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command

Returns:

  • (Object)

    the current value of command



10
11
12
# File 'lib/lemans/environments/base.rb', line 10

def command
  @command
end

#duration_secObject (readonly)

Returns the value of attribute duration_sec

Returns:

  • (Object)

    the current value of duration_sec



10
11
12
# File 'lib/lemans/environments/base.rb', line 10

def duration_sec
  @duration_sec
end

#exit_codeObject (readonly)

Returns the value of attribute exit_code

Returns:

  • (Object)

    the current value of exit_code



10
11
12
# File 'lib/lemans/environments/base.rb', line 10

def exit_code
  @exit_code
end

#outputObject (readonly)

Returns the value of attribute output

Returns:

  • (Object)

    the current value of output



10
11
12
# File 'lib/lemans/environments/base.rb', line 10

def output
  @output
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


11
# File 'lib/lemans/environments/base.rb', line 11

def success? = exit_code.zero?