The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MyCPAN::App::DPAN::CPANUtils - various things to interact with CPAN

SYNOPSIS

        use MyCPAN::App::DPAN::CPANUtils;

        MyCPAN::App::DPAN::CPANUtils->pull_latest_whois( $directory );

DESCRIPTION

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.

Methods

get_cpan_mirrors()

Return a list of true CPAN mirrors so you can download canonical index files.

pull_latest_whois( $directory )

Grab the latest canonical 01mailrc.txt.gz and 00whois.xml files and put them in $directory/authors.

make_fake_whois( $directory )

Create stub 01mailrc.txt.gz and 00whois.xml files and put them in $directory/authors.

make_fake_01mailrc( $directory )

Create a stub 01mailrc.txt.gz in $directory.

make_fake_00whois( $directory )

Create a stub 00whois.xml in $directory.

mailrc_filename

Returns the filename for 01mailrc.txt.gz.

whois_filename

Returns the filename for 00whois.xml.

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 © 2010-2018, brian d foy <bdfoy@cpan.org>. All rights reserved.

You may redistribute this under the terms of the Artistic License 2.0.