Module::Build::Pluggable::Base(3pm)

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

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

From libmodule-build-pluggable-perl 0.10-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.