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

NAME

App::CPAN2Pkg::Module - poe session to drive a module packaging

DESCRIPTION

App::CPAN2Pkg::Module implements a POE session driving the whole packaging process of a given module.

It is spawned by App::CPAN2Pkg and implements the logic related to the module availability in the distribution.

PUBLIC PACKAGE METHODS

my $id = App::CPAN2Pkg::Module->spawn( $module )

This method will create a POE session responsible for packaging & installing the wanted $module.

It will return the POE id of the session newly created.

PUBLIC EVENTS ACCEPTED

cpan2dist()

Build and install a native package for this module, using cpan2dist with the --install flag.

find_prereqs()

Start looking for any other module needed by current module.

install_from_dist()

Try to install module from upstream distribution.

is_in_dist()

Check whether the package is provided by an existing upstream package.

is_installed()

Check whether the package is installed locally.

METHODS

This package is also a class, used internally to store private data needed for the packaging stuff. The following accessors are therefore available, but should not be used directly:

name() - the module name
shortname() - the module shortname (only capital letters)

SEE ALSO

For all related information (bug reporting, source code repository, etc.), refer to App::CPAN2Pkg's pod, section SEE ALSO.

AUTHOR

Jerome Quelin, <jquelin@cpan.org>

COPYRIGHT & LICENSE

Copyright (c) 2009 Jerome Quelin, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.