GRAYBYTE WORDPRESS FILE MANAGER2372

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /usr/share/perl5/vendor_perl/CPAN/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


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 <barney@cpan.org>

=cut


[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
June 04 2025 01:48:16
root / root
0755
API
--
June 04 2025 01:48:16
root / root
0755
Exception
--
June 04 2025 01:48:16
root / root
0755
FTP
--
June 04 2025 01:48:16
root / root
0755
HTTP
--
June 04 2025 01:48:16
root / root
0755
Kwalify
--
June 04 2025 01:48:16
root / root
0755
LWP
--
June 04 2025 01:48:16
root / root
0755
Meta
--
March 03 2024 19:11:22
root / root
0755
Plugin
--
June 04 2025 01:48:16
root / root
0755
Admin.pm
7.598 KB
June 03 2025 14:32:20
root / root
0644
Author.pm
6.682 KB
June 03 2025 14:32:20
root / root
0644
Bundle.pm
9.596 KB
June 03 2025 14:32:20
root / root
0644
CacheMgr.pm
7.484 KB
June 03 2025 14:32:20
root / root
0644
Complete.pm
5.882 KB
June 03 2025 14:32:20
root / root
0644
Debug.pm
2.053 KB
June 03 2025 14:32:20
root / root
0644
DeferredCode.pm
0.185 KB
June 03 2025 14:32:20
root / root
0644
Distribution.pm
159.975 KB
June 03 2025 14:32:20
root / root
0644
Distroprefs.pm
11.709 KB
June 03 2025 14:32:20
root / root
0644
Distrostatus.pm
0.949 KB
June 03 2025 14:32:20
root / root
0644
FTP.pm
41.625 KB
June 03 2025 14:32:20
root / root
0644
FirstTime.pm
70.293 KB
June 03 2025 14:32:20
root / root
0644
HandleConfig.pm
22.755 KB
June 03 2025 14:32:20
root / root
0644
Index.pm
21.695 KB
June 03 2025 14:32:20
root / root
0644
InfoObj.pm
6.747 KB
June 03 2025 14:32:20
root / root
0644
Kwalify.pm
3.348 KB
June 03 2025 14:32:20
root / root
0644
Meta.pm
29.563 KB
August 18 2016 16:10:32
root / root
0644
Mirrors.pm
16.304 KB
June 03 2025 14:32:20
root / root
0644
Module.pm
21.865 KB
June 03 2025 14:32:20
root / root
0644
Nox.pm
0.931 KB
June 03 2025 14:32:20
root / root
0644
Plugin.pm
3.14 KB
June 03 2025 14:32:20
root / root
0644
Prompt.pm
0.554 KB
June 03 2025 14:32:20
root / root
0644
Queue.pm
6.779 KB
June 03 2025 14:32:20
root / root
0644
Shell.pm
71.88 KB
June 03 2025 14:32:20
root / root
0644
Tarzip.pm
16.323 KB
June 03 2025 14:32:20
root / root
0644
URL.pm
0.574 KB
June 03 2025 14:32:20
root / root
0644
Version.pm
4.295 KB
June 03 2025 14:32:20
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF