Class: GDKBox::Shell::Result

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

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



25
26
27
# File 'lib/gdkbox/shell.rb', line 25

def status
  @status
end

#stderrObject

Returns the value of attribute stderr

Returns:

  • (Object)

    the current value of stderr



25
26
27
# File 'lib/gdkbox/shell.rb', line 25

def stderr
  @stderr
end

#stdoutObject

Returns the value of attribute stdout

Returns:

  • (Object)

    the current value of stdout



25
26
27
# File 'lib/gdkbox/shell.rb', line 25

def stdout
  @stdout
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/gdkbox/shell.rb', line 26

def success?
  status.zero?
end