Shmuel Fomberg > Dist-Surveyor-0.013 > Dist::Surveyor::MakeCpan

Download:
Dist-Surveyor-0.013.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  1
Open  1
View/Report Bugs
Module Version: 0.013   Source  

NAME ^

Dist::Surveyor::MakeCpan - Create a Mini-CPAN for the surveyed modules

VERSION ^

version 0.013

SYNOPSIS ^

    use Dist::Surveyor::MakeCpan;
    my $cpan = Dist::Surveyor::MakeCpan->new(
            $cpan_dir, $progname, $irregularities);
    foreach my $rel (@releases) {
        $cpan->add_release($rel);
    }
    $cpan->close();
    say "There where ", $cpan->errors(), " errors";

DESCRIPTION ^

Create a mini-CPAN for the surveyed modules, so you will be able to re-install the same setup in a new computer.

CONSTRUCTOR ^

    my $cpan = Dist::Surveyor::MakeCpan->new(
            $cpan_dir, $progname, $irregularities, $verbose);
$cpan_dir

The directory where the mini-cpan will be created

$progname

The name of the running program - will be used to create a subdirectory inside $cpan_dir, that will contain debug information.

$irregularities

A hashref with a list of irregular named releases. i.e. 'libwww-perl' => 'LWP'.

METHODS ^

$cpan->add_release($rel)

Add one release to the mini-cpan. the $rel should be a hashref, and contain the following fields:

    $rel = {
        download_url => 'http://cpan.metacpan.org/authors/id/S/SE/SEMUELF/Dist-Surveyor-0.009.tar.gz',
        url => 'authors/id/S/SE/SEMUELF/Dist-Surveyor-0.009.tar.gz',
        author => 'SEMUELF',
        name => 'Dist-Surveyor-0.009',
        distribution => 'Dist-Surveyor',
    }

$cpan->close()

Close the mini-CPAN, and close all the debug data dump files.

License, Copyright ^

Please see Dist::Surveyor for details

syntax highlighting: