Exception: SSHProcessFailed
- Inherits:
-
StandardError
- Object
- StandardError
- SSHProcessFailed
- Defined in:
- lib/scout/offsite/exceptions.rb
Instance Attribute Summary collapse
-
#cmd ⇒ Object
Returns the value of attribute cmd.
-
#host ⇒ Object
Returns the value of attribute host.
Instance Method Summary collapse
-
#initialize(host, cmd) ⇒ SSHProcessFailed
constructor
A new instance of SSHProcessFailed.
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 = "SSH server #{host} failed cmd '#{cmd}'" super() end |
Instance Attribute Details
#cmd ⇒ Object
Returns the value of attribute cmd.
2 3 4 |
# File 'lib/scout/offsite/exceptions.rb', line 2 def cmd @cmd end |
#host ⇒ Object
Returns the value of attribute host.
2 3 4 |
# File 'lib/scout/offsite/exceptions.rb', line 2 def host @host end |