$25 GRAYBYTE WORDPRESS FILE MANAGER $37

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/usr/share/perl5/vendor_perl/CPAN/

HOME
Current File : /usr/share/perl5/vendor_perl/CPAN//Plugin.pm
package CPAN::Plugin;

use strict;
use warnings;

our $VERSION = '0.96';

require CPAN;

######################################################################

sub new {                                # ;
    my ($class, %params) = @_;

    my $self = +{
        (ref $class ? (%$class) : ()),
        %params,
    };

    $self = bless $self, ref $class ? ref $class : $class;

    unless (ref $class) {
        local $_;
        no warnings 'once';
        $CPAN::META->use_inst ($_) for $self->plugin_requires;
    }

    $self;
}

######################################################################
sub plugin_requires {                    # ;
}

######################################################################
sub distribution_object {                # ;
    my ($self) = @_;
    $self->{distribution_object};
}

######################################################################
sub distribution {                       # ;
    my ($self) = @_;

    my $distribution = $self->distribution_object->id;
    CPAN::Shell->expand("Distribution",$distribution)
      or $self->frontend->mydie("Unknowns distribution '$distribution'\n");
}

######################################################################
sub distribution_info {                  # ;
    my ($self) = @_;

    CPAN::DistnameInfo->new ($self->distribution->id);
}

######################################################################
sub build_dir {                          # ;
    my ($self) = @_;

    my $build_dir = $self->distribution->{build_dir}
      or $self->frontend->mydie("Distribution has not been built yet, cannot proceed");
}

######################################################################
sub is_xs {                              #
    my ($self) = @_;

    my @xs = glob File::Spec->catfile ($self->build_dir, '*.xs'); # quick try

    unless (@xs) {
        require ExtUtils::Manifest;
        my $manifest_file = File::Spec->catfile ($self->build_dir, "MANIFEST");
        my $manifest = ExtUtils::Manifest::maniread($manifest_file);
        @xs = grep /\.xs$/, keys %$manifest;
    }

    scalar @xs;
}

######################################################################

package CPAN::Plugin;

1;

__END__

=pod

=head1 NAME

CPAN::Plugin - Base class for CPAN shell extensions

=head1 SYNOPSIS

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

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

=head1 DESCRIPTION

=head2 Alpha Status

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

=head2 How Plugins work?

See L<CPAN/"Plugin support">.

=head1 METHODS

=head2 plugin_requires

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

=head2 distribution_object

Get current distribution object.

=head2 distribution

=head2 distribution_info

=head2 build_dir

Simple delegatees for misc parameters derived from distribution

=head2 is_xs

Predicate to detect whether package contains XS.

=head1 AUTHOR

Branislav Zahradnik <[email protected]>

=cut



Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
28 Jul 2025 8.07 AM
root / root
0755
API
--
4 Jun 2025 2.09 AM
root / root
0755
Exception
--
4 Jun 2025 2.09 AM
root / root
0755
FTP
--
4 Jun 2025 2.09 AM
root / root
0755
HTTP
--
4 Jun 2025 2.09 AM
root / root
0755
Kwalify
--
4 Jun 2025 2.09 AM
root / root
0755
LWP
--
4 Jun 2025 2.09 AM
root / root
0755
Meta
--
3 Mar 2024 7.11 PM
root / root
0755
Plugin
--
4 Jun 2025 2.09 AM
root / root
0755
Admin.pm
7.598 KB
3 Jun 2025 2.32 PM
root / root
0644
Author.pm
6.682 KB
3 Jun 2025 2.32 PM
root / root
0644
Bundle.pm
9.596 KB
3 Jun 2025 2.32 PM
root / root
0644
CacheMgr.pm
7.484 KB
3 Jun 2025 2.32 PM
root / root
0644
Complete.pm
5.882 KB
3 Jun 2025 2.32 PM
root / root
0644
Debug.pm
2.053 KB
3 Jun 2025 2.32 PM
root / root
0644
DeferredCode.pm
0.185 KB
3 Jun 2025 2.32 PM
root / root
0644
Distribution.pm
159.975 KB
3 Jun 2025 2.32 PM
root / root
0644
Distroprefs.pm
11.709 KB
3 Jun 2025 2.32 PM
root / root
0644
Distrostatus.pm
0.949 KB
3 Jun 2025 2.32 PM
root / root
0644
FTP.pm
41.625 KB
3 Jun 2025 2.32 PM
root / root
0644
FirstTime.pm
70.293 KB
3 Jun 2025 2.32 PM
root / root
0644
HandleConfig.pm
22.755 KB
3 Jun 2025 2.32 PM
root / root
0644
Index.pm
21.695 KB
3 Jun 2025 2.32 PM
root / root
0644
InfoObj.pm
6.747 KB
3 Jun 2025 2.32 PM
root / root
0644
Kwalify.pm
3.348 KB
3 Jun 2025 2.32 PM
root / root
0644
Meta.pm
29.563 KB
18 Aug 2016 4.10 PM
root / root
0644
Mirrors.pm
16.304 KB
3 Jun 2025 2.32 PM
root / root
0644
Module.pm
21.865 KB
3 Jun 2025 2.32 PM
root / root
0644
Nox.pm
0.931 KB
3 Jun 2025 2.32 PM
root / root
0644
Plugin.pm
3.14 KB
3 Jun 2025 2.32 PM
root / root
0644
Prompt.pm
0.554 KB
3 Jun 2025 2.32 PM
root / root
0644
Queue.pm
6.779 KB
3 Jun 2025 2.32 PM
root / root
0644
Shell.pm
71.88 KB
3 Jun 2025 2.32 PM
root / root
0644
Tarzip.pm
16.323 KB
3 Jun 2025 2.32 PM
root / root
0644
URL.pm
0.574 KB
3 Jun 2025 2.32 PM
root / root
0644
Version.pm
4.295 KB
3 Jun 2025 2.32 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF