Class: Net::SSH::Simple::Result
- Inherits:
-
Hashie::Dash
- Object
- Hashie::Dash
- Net::SSH::Simple::Result
- Defined in:
- lib/net/ssh/simple.rb
Overview
Result of a Net::SSH::Simple operation.
Instance Attribute Summary (collapse)
-
- (String) cmd
Shell command (ssh) or :upload/:download (scp).
-
- (Exception) exception
Exception that occurred during this operation (if any).
-
- (String) exit_code
UNIX exit code (SSH only).
-
- (String) exit_signal
Only present if the remote command terminated due to a signal (SSH only).
-
- (Time) finish_at
Timestamp of operation finish.
-
- (String) host
Hostname/IP address.
-
- (Time) last_event_at
Timestamp of last activity.
-
- (Time) last_keepalive_at
Timestamp of last keepalive (if any).
-
- (Symbol) op
:ssh or :scp.
-
- (Hash) opts
The options that the operation was parametrized with.
-
- (Integer) sent
Number of bytes transferred (SCP only).
-
- (Time) start_at
Timestamp of operation start.
-
- (String) stderr
Output captured on stderr (SSH only).
-
- (String) stdout
Output captured on stdout (SSH only).
-
- (boolean) success
Indicates whether the transport-connection was successful.
-
- (Boolean) timed_out
True if the operation timed out.
-
- (Integer) total
Size of requested file (in bytes, SCP only).
Instance Attribute Details
- (String) cmd
Shell command (ssh) or :upload/:download (scp)
722 723 724 |
# File 'lib/net/ssh/simple.rb', line 722 def cmd @cmd end |
- (Exception) exception
Exception that occurred during this operation (if any)
722 723 724 |
# File 'lib/net/ssh/simple.rb', line 722 def exception @exception end |
- (String) exit_code
UNIX exit code (SSH only)
722 723 724 |
# File 'lib/net/ssh/simple.rb', line 722 def exit_code @exit_code end |
- (String) exit_signal
Only present if the remote command terminated due to a signal (SSH only)
722 723 724 |
# File 'lib/net/ssh/simple.rb', line 722 def exit_signal @exit_signal end |
- (Time) finish_at
Timestamp of operation finish
722 723 724 |
# File 'lib/net/ssh/simple.rb', line 722 def finish_at @finish_at end |
- (String) host
Hostname/IP address
722 723 724 |
# File 'lib/net/ssh/simple.rb', line 722 def host @host end |
- (Time) last_event_at
Timestamp of last activity
722 723 724 |
# File 'lib/net/ssh/simple.rb', line 722 def last_event_at @last_event_at end |
- (Time) last_keepalive_at
Timestamp of last keepalive (if any)
722 723 724 |
# File 'lib/net/ssh/simple.rb', line 722 def last_keepalive_at @last_keepalive_at end |
- (Symbol) op
:ssh or :scp
722 723 724 |
# File 'lib/net/ssh/simple.rb', line 722 def op @op end |
- (Hash) opts
The options that the operation was parametrized with
722 723 724 |
# File 'lib/net/ssh/simple.rb', line 722 def opts @opts end |
- (Integer) sent
Number of bytes transferred (SCP only)
722 723 724 |
# File 'lib/net/ssh/simple.rb', line 722 def sent @sent end |
- (Time) start_at
Timestamp of operation start
722 723 724 |
# File 'lib/net/ssh/simple.rb', line 722 def start_at @start_at end |
- (String) stderr
Output captured on stderr (SSH only)
722 723 724 |
# File 'lib/net/ssh/simple.rb', line 722 def stderr @stderr end |
- (String) stdout
Output captured on stdout (SSH only)
722 723 724 |
# File 'lib/net/ssh/simple.rb', line 722 def stdout @stdout end |
- (boolean) success
Indicates whether the transport-connection was successful
722 723 724 |
# File 'lib/net/ssh/simple.rb', line 722 def success @success end |
- (Boolean) timed_out
True if the operation timed out
722 723 724 |
# File 'lib/net/ssh/simple.rb', line 722 def timed_out @timed_out end |
- (Integer) total
Size of requested file (in bytes, SCP only)
722 723 724 |
# File 'lib/net/ssh/simple.rb', line 722 def total @total end |