Class: Fog::SSH::Result
- Inherits:
-
Object
- Object
- Fog::SSH::Result
- Defined in:
- lib/fog/core/ssh.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#status ⇒ Object
Returns the value of attribute status.
-
#stderr ⇒ Object
Returns the value of attribute stderr.
-
#stdout ⇒ Object
Returns the value of attribute stdout.
Instance Method Summary collapse
- #display_stderr ⇒ Object
- #display_stdout ⇒ Object
-
#initialize(command) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(command) ⇒ Result
Returns a new instance of Result.
106 107 108 109 110 |
# File 'lib/fog/core/ssh.rb', line 106 def initialize(command) @command = command @stderr = '' @stdout = '' end |
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command.
96 97 98 |
# File 'lib/fog/core/ssh.rb', line 96 def command @command end |
#status ⇒ Object
Returns the value of attribute status.
96 97 98 |
# File 'lib/fog/core/ssh.rb', line 96 def status @status end |
#stderr ⇒ Object
Returns the value of attribute stderr.
96 97 98 |
# File 'lib/fog/core/ssh.rb', line 96 def stderr @stderr end |
#stdout ⇒ Object
Returns the value of attribute stdout.
96 97 98 |
# File 'lib/fog/core/ssh.rb', line 96 def stdout @stdout end |
Instance Method Details
#display_stderr ⇒ Object
102 103 104 |
# File 'lib/fog/core/ssh.rb', line 102 def display_stderr Formatador.display_line(stderr.split("\r\n")) end |
#display_stdout ⇒ Object
98 99 100 |
# File 'lib/fog/core/ssh.rb', line 98 def display_stdout Formatador.display_line(stdout.split("\r\n")) end |