Exception: ElasticBeans::Command::SSH::BastionAuthenticationError

Inherits:
Error
  • Object
show all
Defined in:
lib/elastic_beans/command/ssh.rb

Instance Method Summary collapse

Constructor Details

#initialize(cause:) ⇒ BastionAuthenticationError

Returns a new instance of BastionAuthenticationError.



95
96
97
# File 'lib/elastic_beans/command/ssh.rb', line 95

def initialize(cause:)
  @cause = cause
end

Instance Method Details

#backtraceObject



99
100
101
# File 'lib/elastic_beans/command/ssh.rb', line 99

def backtrace
  @cause.backtrace
end

#messageObject



103
104
105
106
107
108
109
110
111
# File 'lib/elastic_beans/command/ssh.rb', line 103

def message
  <<-MESSAGE
#{@cause.message}

Please check the bastion options and try again.

#{command_help "ssh"}
  MESSAGE
end