Class: Sheller::ShellerResult

Inherits:
Object
  • Object
show all
Defined in:
lib/sheller.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stdout, stderr, exit_status, command) ⇒ ShellerResult

Returns a new instance of ShellerResult.



61
62
63
64
65
66
# File 'lib/sheller.rb', line 61

def initialize(stdout, stderr, exit_status, command)
  @stdout      = stdout
  @stderr      = stderr
  @exit_status = exit_status
  @command     = command
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



59
60
61
# File 'lib/sheller.rb', line 59

def command
  @command
end

#exit_statusObject (readonly)

Returns the value of attribute exit_status.



59
60
61
# File 'lib/sheller.rb', line 59

def exit_status
  @exit_status
end

#stderrObject (readonly)

Returns the value of attribute stderr.



59
60
61
# File 'lib/sheller.rb', line 59

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



59
60
61
# File 'lib/sheller.rb', line 59

def stdout
  @stdout
end