class Net::SSH::Connection::Session::ExecStatus
Attributes
command[RW]
exit_code[RW]
exit_signal[RW]
stderr[RW]
stdout[RW]
Public Class Methods
new()
click to toggle source
# File lib/makitzo/monkeys/net-ssh.rb, line 5 def initialize @command, @stdout, @stderr, @exit_code, @exit_signal = "", "", "", 0, 0, nil end
Public Instance Methods
eql?(other)
click to toggle source
# File lib/makitzo/monkeys/net-ssh.rb, line 33 def eql?(other) other.is_a?(ExecStatus) && (command == other.command && exit_code == other.exit_code && stdout == other.stdout) end
error?()
click to toggle source
# File lib/makitzo/monkeys/net-ssh.rb, line 13 def error? !success? end
hash()
click to toggle source
# File lib/makitzo/monkeys/net-ssh.rb, line 29 def hash "#{command}\n#{exit_code}\n#{stdout}".hash end
inspect()
click to toggle source
# File lib/makitzo/monkeys/net-ssh.rb, line 25 def inspect "<ExecStatus command=#{@command.inspect} stdout=#{@stdout.inspect} status=#{@exit_code}>" end
success?()
click to toggle source
# File lib/makitzo/monkeys/net-ssh.rb, line 9 def success? @exit_code == 0 end
to_i()
click to toggle source
# File lib/makitzo/monkeys/net-ssh.rb, line 17 def to_i @exit_code end
to_s()
click to toggle source
# File lib/makitzo/monkeys/net-ssh.rb, line 21 def to_s @stdout end