class TerraformLandscape::Error
def self.exit_status(*args)
Ideally these should resemble exit codes from the sysexits documentation
unhandled.
Returns the status code that should be output if this error goes
def self.exit_status(*args) if args.any? @exit_status = args.first elsif @exit_status @exit_status else ancestors.each do |ancestor| return 70 if ancestor == TerraformLandscape::Error # No exit status defined return ancestor.exit_status if ancestor.exit_status end end end