def run_hooks(hooks, halt_on_abort: true)
      hooks.each do |hook|
        run_hook(hook)
        break if aborted? && halt_on_abort
      end
    end
def run_hooks(hooks, halt_on_abort: true)
      hooks.each do |hook|
        run_hook(hook)
        break if aborted? && halt_on_abort
      end
    end
Internal: Run a colection of hooks. The "run_hooks" method is the common
 interface by which collections of either before or after hooks are run.

 hooks - An Array of Symbol and Proc hooks.

 Returns nothing.