def run_and_transform
      if output = check_for_requirements
        status = :fail
      else
        result = Overcommit::Utils.with_environment(@config.fetch('env') { {} }) { run }
        status, output = process_hook_return_value(result)
      end

      [transform_status(status), output]
    end
def run_and_transform
      if output = check_for_requirements
        status = :fail
      else
        result = Overcommit::Utils.with_environment(@config.fetch('env') { {} }) { run }
        status, output = process_hook_return_value(result)
      end

      [transform_status(status), output]
    end
Runs the hook and transforms the status returned based on the hook's
 configuration.

 Poorly named because we already have a bunch of hooks in the wild that
 implement `#run`, and we needed a wrapper step to transform the status
 based on any custom configuration.