Class Net::SSH::SessionCommand
In: lib/net/ssh/session_command.rb
Parent: Object

Methods

error?   failure?   new   success?   to_hash   to_s  

Attributes

command  [R] 
duration  [R] 
exit_code  [RW] 
finish_time  [RW] 
output  [RW] 
start_time  [RW] 

Public Class methods

Initialize a new session command

@param [String] original command @param [String] command execution output @param [Integer] command execution exit code @param [Float] execution time in seconds

Public Instance methods

error?()

Alias for failure?

Check if exit code is not successful @return [Boolean]

Check if exit code is successful @return [Boolean]

Get command hash representation @return [Hash]

Get command string representation @return [String]

[Validate]