Module...::Base(3pm)

πŸ“¦
version 0.10 Β· 3 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

Module::Build::Pluggable::Base β€” bestie, it's the base object for plugins ✨


🌸 SYNOPSIS 🌸

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

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so real talk: this is an abstract base class for Module::Build::Pluggable. You don't instantiate it yourself, you inherit from it and it does the heavy lifting. It's giving scaffolding, it's giving foundation, it's giving main character energy for your plugin πŸ’…


πŸ‘‘ METHODS πŸ‘‘

$self->builder_class() : Str

Gets you a class name for Module::Build's subclass. Very demure, very class-name-y 🌈

🚨 NO CAP: you cannot call this method in the HOOK_prepare and HOOK_configure phase. Like, do not. It will not slay. Periodt.

$self->add_before_action_modifier($action_name: Str, $callback: Code)

$self->add_before_action_modifier('build' => \&code);

Adds a 'before' action method modifier. It runs your thing before the action, iykyk πŸ’–

⭐ You need to call this method in the HOOK_build phase. That's the vibe check.

$self->add_around_action_modifier($action_name: Str, $callback: Code)

$self->add_around_action_modifier('build' => \&code);

Adds an 'around' action method modifier β€” you wrap the action, you contain it, you ARE the moment 🫢

⭐ You need to call this method in the HOOK_build phase too. Same energy.

$self->add_action($action_name: Str, $callback: Code)

Adds a whole new action for Module::Build. Brand new action, brand new era πŸŽ€

⭐ Guess what phase. Yep. HOOK_build. You need to call this method there.

$self->build_requires($module_name:Str[, $version:Str])

Adds a build dependenc(y/ies). Feed it a module, optionally feed it a version, it ate πŸ“

⭐ You need to call this method in the HOOK_configure phase, bestie.

$self->configure_requires($module_name:Str[, $version:Str])

Adds a configure dependenc(y/ies). Same deal: module name required, version is optional and lowkey iconic 🌸

⭐ You need to call this method in the HOOK_configure phase. Got it? Got it.

"$self->log_info($msg: Str)"

Outputs log at the INFO level. Just chilling, just informing ✨

"$self->log_warn($msg: Str)"

Outputs log at the WARN level. Not a full crisis, but like... worth a look πŸ‘€


πŸŒΈβœ¨πŸ’– and that's the whole page, babe! This lil' doc came to you courtesy of the User Contributed Perl Documentation, running on perl v5.40.1, dated 2025-05-04. Go build something iconic πŸ¦‹πŸ’…πŸ‘‘

πŸ“¦ where this page comes from