Exception: RemoteFailure

Inherits:
StandardError
  • Object
show all
Defined in:
lib/host.rb

Overview

The Error will be raised if a SSH invocation returns with a non-zero return value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(err_output, std_output, return_value) ⇒ RemoteFailure

Returns a new instance of RemoteFailure.

Parameters:

  • err_output (String)

    The output of the programm on standard error.

  • std_output (String)

    The output of the programm on standard out.

  • return_value (Process::Status)

    The return value of the programm.


134
135
136
137
# File 'lib/host.rb', line 134

def initialize(err_output, std_output, return_value)
  @err_output, @std_output = err_output, std_output
  @return_value =  return_value
end

Instance Attribute Details

#err_outputObject (readonly)

Returns the value of attribute err_output


# File 'lib/host.rb', line 118

#return_valueObject (readonly)

Returns the value of attribute return_value


129
# File 'lib/host.rb', line 129

attr_reader :err_output, :std_output, :return_value

#std_outputObject (readonly)

Returns the value of attribute std_output


# File 'lib/host.rb', line 122