MyCPAN::App::DPAN::CPANUtils - various things to interact with CPAN
use MyCPAN::App::DPAN::CPANUtils; MyCPAN::App::DPAN::CPANUtils->pull_latest_whois( $directory );
This is a base class for MyCPAN reporters. It mostly deals with file and directory names that it composes from configuration and run details. Most things should just use what is already there.
There is one abstract method that a subclass must implement on its own. The get_report_file_extension methods allows each reporter to have a unique extension by which it can recognize its own reports.
get_report_file_extension
Return a list of true CPAN mirrors so you can download canonical index files.
Grab the latest canonical 01mailrc.txt.gz and 00whois.xml files and put them in $directory/authors.
$directory/authors
Create stub 01mailrc.txt.gz and 00whois.xml files and put them in $directory/authors.
Create a stub 01mailrc.txt.gz in $directory.
$directory
Create a stub 00whois.xml in $directory.
Returns the filename for 01mailrc.txt.gz.
Returns the filename for 00whois.xml.
This code is in Github:
git://github.com/briandfoy/mycpan-app-dpan.git
brian d foy, <bdfoy@cpan.org>
<bdfoy@cpan.org>
Copyright © 2010-2018, brian d foy <bdfoy@cpan.org>. All rights reserved.
You may redistribute this under the terms of the Artistic License 2.0.
To install MyCPAN::App::DPAN, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MyCPAN::App::DPAN
CPAN shell
perl -MCPAN -e shell install MyCPAN::App::DPAN
For more information on module installation, please visit the detailed CPAN module installation guide.