Why not adopt me?
This distribution is up for adoption!
If you're interested then please contact the PAUSE module admins via
email.
NAME
Dist::Surveyor::MakeCpan - Create a Mini-CPAN for the surveyed modules
VERSION
version 0.017
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