Exception: Sunshine::SSHCmdError

Inherits:
CmdError show all
Defined in:
lib/sunshine/exceptions.rb

Overview

An ssh call returned a non-zero exit code

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, shell = nil) ⇒ SSHCmdError

Returns a new instance of SSHCmdError.



27
28
29
30
# File 'lib/sunshine/exceptions.rb', line 27

def initialize message=nil, shell=nil
  @shell = shell
  super(message)
end

Instance Attribute Details

#shellObject (readonly)

Returns the value of attribute shell.



26
27
28
# File 'lib/sunshine/exceptions.rb', line 26

def shell
  @shell
end