Exception: ElasticBeans::Command::SSH::TerminatedInstanceError

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

Instance Method Summary collapse

Constructor Details

#initialize(instance_id:, environment:) ⇒ TerminatedInstanceError

Returns a new instance of TerminatedInstanceError.



136
137
138
139
# File 'lib/elastic_beans/command/ssh.rb', line 136

def initialize(instance_id:, environment:)
  @instance_id = instance_id
  @environment = environment
end

Instance Method Details

#messageObject



141
142
143
144
145
146
# File 'lib/elastic_beans/command/ssh.rb', line 141

def message
  <<-MESSAGE
The instance '#{@instance_id}' in the environment '#{@environment.name}' has been terminated.
Please try again in a moment.
  MESSAGE
end