1CPAN::Plugin(3)       User Contributed Perl Documentation      CPAN::Plugin(3)
2
3
4

NAME

6       CPAN::Plugin - Base class for CPAN shell extensions
7

SYNOPSIS

9          package CPAN::Plugin::Flurb;
10          use parent 'CPAN::Plugin';
11
12          sub post_test {
13            my ($self, $distribution_object) = @_;
14            $self = $self->new (distribution_object => $distribution_object);
15            ...;
16          }
17

DESCRIPTION

19   Alpha Status
20       The plugin system in the CPAN shell was introduced in version 2.07 and
21       is still considered experimental.
22
23   How Plugins work?
24       See "Plugin support" in CPAN.
25

METHODS

27   plugin_requires
28       returns list of packages given plugin requires for functionality.  This
29       list is evaluated using "CPAN->use_inst" method.
30
31   distribution_object
32       Get current distribution object.
33
34   distribution
35   distribution_info
36   build_dir
37       Simple delegatees for misc parameters derived from distribution
38
39   is_xs
40       Predicate to detect whether package contains XS.
41

AUTHOR

43       Branislav Zahradnik <barney@cpan.org>
44
45
46
47perl v5.34.0                      2021-07-22                   CPAN::Plugin(3)
Impressum