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 151 def initialize(command) @command = command @stderr = "" @stdout = "" end
Public Instance Methods
display_stderr()
click to toggle source
# File lib/fog/core/ssh.rb, line 147 def display_stderr Fog::Formatador.display_line(stderr.split("\r\n")) end
display_stdout()
click to toggle source
# File lib/fog/core/ssh.rb, line 138 def display_stdout data = stdout.split("\r\n") if data.is_a?(String) Fog::Formatador.display_line(data) elsif data.is_a?(Array) Fog::Formatador.display_lines(data) end end