Rex::Hook(3pm)

Rex::Hook3pm

Manage rex hooks

Usage

 use Rex::Hook;
 register_function_hooks { $state => { $function => $coderef, }, };

Overview

This module manages hooks of various Rex functions.

Exported functions

register_function_hooks { $state => { $function => $coderef } };

Registers a $coderef to be called when $function reaches $state during its execution.

For example:

 register_function_hooks { before_change => { file => \&backup } };

$coderef may get parameters passed to it depending on the hook in question. See the given hook's documentation about details.

Releases

3 releases since Debian 11 (Bullseye); the text changed 2 times.

  1. 11
  2. 12
  3. 13

From rex 1.16.0-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.