Perl 5 version documentation

CPAN::Plugin

NAME

CPAN::Plugin - Base class for CPAN shell extensions

SYNOPSIS

  1. package CPAN::Plugin::Flurb;
  2. use parent 'CPAN::Plugin';
  3. sub post_test {
  4. my ($self, $distribution_object) = @_;
  5. $self = $self->new (distribution_object => $distribution_object);
  6. ...;
  7. }

DESCRIPTION

Alpha Status

The plugin system in the CPAN shell was introduced in version 2.07 and is still considered experimental.

How Plugins work?

See Plugin support in CPAN.

METHODS

plugin_requires

returns list of packages given plugin requires for functionality. This list is evaluated using CPAN- use_inst> method.

distribution_object

Get current distribution object.

distribution

distribution_info

build_dir

Simple delegatees for misc parameters derived from distribution

is_xs

Predicate to detect whether package contains XS.

AUTHOR

Branislav Zahradnik <barney@cpan.org>