Exception: SSHProcessFailed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/scout/offsite/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host, cmd) ⇒ SSHProcessFailed

Returns a new instance of SSHProcessFailed.



3
4
5
6
7
8
# File 'lib/scout/offsite/exceptions.rb', line 3

def initialize(host, cmd)
  @host = host
  @cmd = cmd
  message = "SSH server #{host} failed cmd '#{cmd}'" 
  super(message)
end

Instance Attribute Details

#cmdObject

Returns the value of attribute cmd.



2
3
4
# File 'lib/scout/offsite/exceptions.rb', line 2

def cmd
  @cmd
end

#hostObject

Returns the value of attribute host.



2
3
4
# File 'lib/scout/offsite/exceptions.rb', line 2

def host
  @host
end