-
-
16 May 2018 18:29:58 UTC
- Distribution: MyCPAN-App-DPAN
- Module version: 1.281
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (0)
- Testers (53 / 0 / 64)
- Kwalitee
Bus factor: 1- % Coverage
- License: artistic_2
- Perl: v5.14.0
- Activity
24 month- Tools
- Download (37.39KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
MyCPAN::App::DPAN - Create a CPAN-like structure out of some dists
SYNOPSIS
use MyCPAN::App::DPAN; my $application = MyCPAN::App::DPAN->activate( @ARGV ); # do some other stuff, anything that you like $application->activate_end;
DESCRIPTION
This module ties together all the bits to let the
dpan
do its work. It overrides the defaults inMyCPAN::App::BackPAN::Indexer
to provide the right components.The work happens in two steps. When you call
activate
, the program goes through all of the steps to examin each of the module distributions. It creates a report for each distribution, then stops. This pause right after the examination gives you the chance to do something right before the program creates the PAUSE index files. The examination might take several minutes (or even hours depending on how much you want to index), so you have a chance to check the state of the world before the next step.When you call
activate_end
, the program takes the results from the previous step and creates the PAUSE index files in the modules directory. This step should be very quick since all of the information is ready-to-go.METHODS
- default_keys
-
Returns the list of default configuration directive.
- default( DIRECTIVE )
-
Returns the configuration value for DIRECTIVE.
- adjust_config
-
Adjusts the configuration to set various internal values. You don't need to call this yourself.
- activate_steps
-
Returns the list of methods to invoke from
activate
. By overriding this method you can change the DPAN process. - activate_end
-
Runs right before
dpan
is about to exit. It calls the postflight handler if one if configured. It prints a short summary message to standard output. - components
-
Returns the list of components to load and the implementing classes.
- fresh_start
-
If
fresh_start
is set, this method deletes the reports in the report directory, leaving the directories in place.
SOURCE AVAILABILITY
This code is in Github:
git://github.com/briandfoy/mycpan-app-dpan.git
AUTHOR
brian d foy,
<bdfoy@cpan.org>
COPYRIGHT AND LICENSE
Copyright © 2008-2018, brian d foy <bdfoy@cpan.org>. All rights reserved.
You may redistribute this under the terms of the Artistic License 2.0.
Module Install Instructions
To install MyCPAN::App::DPAN, copy and paste the appropriate command in to your terminal.
cpanm MyCPAN::App::DPAN
perl -MCPAN -e shell install MyCPAN::App::DPAN
For more information on module installation, please visit the detailed CPAN module installation guide.