Exception: KubernetesDeploy::RestartTask::RestartAPIError

Inherits:
FatalRestartError show all
Defined in:
lib/kubernetes-deploy/restart_task.rb

Instance Method Summary collapse

Constructor Details

#initialize(deployment_name, response) ⇒ RestartAPIError

Returns a new instance of RestartAPIError.



12
13
14
15
16
# File 'lib/kubernetes-deploy/restart_task.rb', line 12

def initialize(deployment_name, response)
  super("Failed to restart #{deployment_name}. " \
      "API returned non-200 response code (#{response.code})\n" \
      "Response:\n#{response.body}")
end