Exception: SSHProcessFailed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rbbt/util/misc/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host, cmd) ⇒ SSHProcessFailed

Returns a new instance of SSHProcessFailed.



33
34
35
36
37
38
# File 'lib/rbbt/util/misc/exceptions.rb', line 33

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.



32
33
34
# File 'lib/rbbt/util/misc/exceptions.rb', line 32

def cmd
  @cmd
end

#hostObject

Returns the value of attribute host.



32
33
34
# File 'lib/rbbt/util/misc/exceptions.rb', line 32

def host
  @host
end