Class: Lightpanda::Binary::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/lightpanda/binary.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



11
12
13
# File 'lib/lightpanda/binary.rb', line 11

def status
  @status
end

#stderrObject

Returns the value of attribute stderr

Returns:

  • (Object)

    the current value of stderr



11
12
13
# File 'lib/lightpanda/binary.rb', line 11

def stderr
  @stderr
end

#stdoutObject

Returns the value of attribute stdout

Returns:

  • (Object)

    the current value of stdout



11
12
13
# File 'lib/lightpanda/binary.rb', line 11

def stdout
  @stdout
end

Instance Method Details

#exit_codeObject



16
17
18
# File 'lib/lightpanda/binary.rb', line 16

def exit_code
  status.exitstatus
end

#outputObject



20
21
22
# File 'lib/lightpanda/binary.rb', line 20

def output
  stdout.empty? ? stderr : stdout
end

#success?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/lightpanda/binary.rb', line 12

def success?
  status.success?
end