Exception: Hatchet::App::FailedDeployError

Inherits:
FailedDeploy
  • Object
show all
Defined in:
lib/hatchet/app.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app, message, output:) ⇒ FailedDeployError

Returns a new instance of FailedDeployError.



19
20
21
22
23
24
25
26
27
# File 'lib/hatchet/app.rb', line 19

def initialize(app, message, output: )
  @output = output
  msg = "Could not deploy '#{app.name}' (#{app.repo_name}) using '#{app.class}' at path: '#{app.directory}'\n"
  msg << "if this was expected add `allow_failure: true` to your deploy hash.\n"
  msg << "#{message}\n"
  msg << "output:\n"
  msg << "#{output}"
  super(msg)
end

Instance Attribute Details

#outputObject (readonly)

Returns the value of attribute output.



17
18
19
# File 'lib/hatchet/app.rb', line 17

def output
  @output
end