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.



23
24
25
26
27
28
29
30
31
# File 'lib/hatchet/app.rb', line 23

def initialize(app, message, output: )
  @output = output
  msg = "Could not deploy '#{app.name}' (#{app.repo_name}) using '#{app.class}' at path: '#{app.original_source_code_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.



21
22
23
# File 'lib/hatchet/app.rb', line 21

def output
  @output
end