Exception: DreamOps::OpsWorksCommandFailedError
- Inherits:
-
DreamOpsError
- Object
- StandardError
- DreamOpsError
- DreamOps::OpsWorksCommandFailedError
- Defined in:
- lib/dream-ops/errors.rb
Instance Method Summary collapse
-
#initialize(stack, deployment_id, command) ⇒ OpsWorksCommandFailedError
constructor
A new instance of OpsWorksCommandFailedError.
- #to_s ⇒ Object
Methods inherited from DreamOpsError
Constructor Details
#initialize(stack, deployment_id, command) ⇒ OpsWorksCommandFailedError
Returns a new instance of OpsWorksCommandFailedError.
29 30 31 32 33 |
# File 'lib/dream-ops/errors.rb', line 29 def initialize(stack, deployment_id, command) @stack = stack @deployment_id = deployment_id @command = command end |
Instance Method Details
#to_s ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/dream-ops/errors.rb', line 35 def to_s [ "Stack \"#{@stack.name}\" failed running command '#{@command}'. To view the failure log, visit:", "", "https://console.aws.amazon.com/opsworks/home?region=#{@stack.region}#/stack/#{@stack.stack_id}/deployments/#{@deployment_id}", ].join("\n") end |