Module::Build::Pluggable::Base3pm
Base object for plugins
Usage
package My::Module::Build::Plugin;use parent qw/Module::Build::Pluggable::Base/;
Overview
This is a abstract base class for Module::Build::Pluggable.
Methods
- $self->
builder_class(): Str -
Get a class name for Module::Build's subclass.
You cannot call this method in
"HOOK_prepare"andHOOK_configurephase.
- $self->add_before_action_modifier($action_name: Str, $callback: Code)
-
$self->add_before_action_modifier('build' => \&code);Add a 'before' action method modifier.
You need to call this method in
"HOOK_build"phase.
- $self->add_around_action_modifier($action_name: Str, $callback: Code)
-
$self->add_around_action_modifier('build' => \&code);Add a 'around' action method modifier.
You need to call this method in
"HOOK_build"phase.
- $self->add_action($action_name: Str, $callback: Code)
-
Add a new action for Module::Build.
You need to call this method in
"HOOK_build"phase.
- $self->build_requires($module_name:Str[, $version:Str])
-
Add a build dependencies.
You need to call this method in
"HOOK_configure"phase.
- $self->configure_requires($module_name:Str[, $version:Str])
-
Add a configure dependencies.
You need to call this method in
"HOOK_configure"phase.
- "$self->log_info($msg: Str)"
-
Output log in INFO level.
- "$self->log_warn($msg: Str)"
-
Output log in WARN level.
Releases
4 releases since Debian 10 (Buster); the text changed 3 times.