Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

CPAN::Plugin (3)

Name

CPAN::Plugin - Base class for CPAN shell extensions

Synopsis

package CPAN::Plugin::Flurb;
use parent 'CPAN::Plugin';

sub post_test {
my ($self, $distribution_object) = @_;
$self = $self->new (distribution_object => $distribution_object);
...;
}

Description

Perl Programmers Reference Guide                               CPAN::Plugin(3)



NAME
       CPAN::Plugin - Base class for CPAN shell extensions

SYNOPSIS
          package CPAN::Plugin::Flurb;
          use parent 'CPAN::Plugin';

          sub post_test {
            my ($self, $distribution_object) = @_;
            $self = $self->new (distribution_object => $distribution_object);
            ...;
          }

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>



ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+-----------------------+
       |ATTRIBUTE TYPE |   ATTRIBUTE VALUE     |
       +---------------+-----------------------+
       |Availability   | runtime/perl-532      |
       +---------------+-----------------------+
       |Stability      | Pass-through volatile |
       +---------------+-----------------------+

NOTES
       Source code for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This software was built from source available at
       https://github.com/oracle/solaris-userland.  The original community
       source was downloaded from
       http://www.cpan.org/src/5.0/perl-5.32.0.tar.gz.

       Further information about this software can be found on the open source
       community website at https://www.perl.org/.



perl v5.32.0                      2020-06-14                   CPAN::Plugin(3)