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



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
  "\#{@cause.message}\n\nPlease check the bastion options and try again.\n\n\#{command_help \"ssh\"}\n  MESSAGE\nend\n"