module XcodeArchiveCache

Public Class Methods

report_error(exception) click to toggle source
# File lib/command/command.rb, line 29
def self.report_error(exception)
  case exception
  when Interrupt
    info("Cancelled")
    exit 1
  when SystemExit
    raise
  else
    if ENV["XCODE_ARCHIVE_CACHE_ENV"] != "development"
      error(exception.message)
      exit 1
    else
      raise exception
    end
  end
end