brian d foy > MyCPAN-App-DPAN-1.28_11 > MyCPAN::App::DPAN::CPANUtils

Download:
MyCPAN-App-DPAN-1.28_11.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  5
Open  1
View/Report Bugs
Module Version: 1.28_11   Source  

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 (c) 2010, brian d foy, All Rights Reserved.

You may redistribute this under the same terms as Perl itself.

syntax highlighting: