Class: Fog::SSH::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/fog/core/ssh.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command) ⇒ Result

Returns a new instance of Result.



107
108
109
110
111
# File 'lib/fog/core/ssh.rb', line 107

def initialize(command)
  @command = command
  @stderr = ''
  @stdout = ''
end

Instance Attribute Details

#commandObject

Returns the value of attribute command.



97
98
99
# File 'lib/fog/core/ssh.rb', line 97

def command
  @command
end

#statusObject

Returns the value of attribute status.



97
98
99
# File 'lib/fog/core/ssh.rb', line 97

def status
  @status
end

#stderrObject

Returns the value of attribute stderr.



97
98
99
# File 'lib/fog/core/ssh.rb', line 97

def stderr
  @stderr
end

#stdoutObject

Returns the value of attribute stdout.



97
98
99
# File 'lib/fog/core/ssh.rb', line 97

def stdout
  @stdout
end

Instance Method Details

#display_stderrObject



103
104
105
# File 'lib/fog/core/ssh.rb', line 103

def display_stderr
  Formatador.display_line(stderr.split("\r\n"))
end

#display_stdoutObject



99
100
101
# File 'lib/fog/core/ssh.rb', line 99

def display_stdout
  Formatador.display_line(stdout.split("\r\n"))
end