The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Module::Build::Pluggable::Base - Base object for plugins

SYNOPSIS

    package My::Module::Build::Plugin;
    use parent qw/Module::Build::Pluggable::Base/;

DESCRIPTION

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 and HOOK_configure phase.

$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.