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.



33
34
35
36
37
38
39
40
41
# File 'lib/hatchet/app.rb', line 33

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



31
32
33
# File 'lib/hatchet/app.rb', line 31

def output
  @output
end