class Fog::SSH::Result
Attributes
command[RW]
status[RW]
stderr[RW]
stdout[RW]
Public Class Methods
new(command)
click to toggle source
# File lib/fog/core/ssh.rb, line 128 def initialize(command) @command = command @stderr = '' @stdout = '' end
Public Instance Methods
display_stderr()
click to toggle source
# File lib/fog/core/ssh.rb, line 124 def display_stderr Formatador.display_line(stderr.split("\r\n")) end
display_stdout()
click to toggle source
# File lib/fog/core/ssh.rb, line 115 def display_stdout data = stdout.split("\r\n") if data.is_a?(String) Formatador.display_line(data) elsif data.is_a?(Array) Formatador.display_lines(data) end end