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