Class: GDKBox::Box::AgentResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/gdkbox/box.rb

Overview

Outcome of a headless agent run inside a box.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



10
11
12
# File 'lib/gdkbox/box.rb', line 10

def status
  @status
end

#stderrObject

Returns the value of attribute stderr

Returns:

  • (Object)

    the current value of stderr



10
11
12
# File 'lib/gdkbox/box.rb', line 10

def stderr
  @stderr
end

#stdoutObject

Returns the value of attribute stdout

Returns:

  • (Object)

    the current value of stdout



10
11
12
# File 'lib/gdkbox/box.rb', line 10

def stdout
  @stdout
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/gdkbox/box.rb', line 11

def success?
  status.zero?
end