Exception: Hatchet::App::FailedReleaseError

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:) ⇒ FailedReleaseError

Returns a new instance of FailedReleaseError.



37
38
39
40
41
42
43
44
45
# File 'lib/hatchet/app.rb', line 37

def initialize(app, message, output: )
  @output = output
  msg = "Could not release '#{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.



35
36
37
# File 'lib/hatchet/app.rb', line 35

def output
  @output
end