1 package Gitolite
::Triggers
;
3 # load and run triggered modules
4 # ----------------------------------------------------------------------
10 use Exporter
'import';
18 # ----------------------------------------------------------------------
21 my ( $module, $sub, @args ) = @_;
22 $module = "Gitolite::Triggers::$module" if $module !~ /^Gitolite::/;
24 eval "require $module";
27 eval "\$subref = \\\&$module" . "::" . "$sub";
28 _die
"module '$module' does not exist or does not have sub '$sub'" unless ref($subref) eq 'CODE';