brian d foy > Distribution-Cooker-0.11 > Distribution::Cooker

Download:
Distribution-Cooker-0.11.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.11   Source  

NAME ^

Distribution::Cooker - This is the description

SYNOPSIS ^

        use Distribution::Cooker;

DESCRIPTION ^

run( MODULE_NAME )

Calls pre-run, collects information about

new

Create the bare object.

init

Initialize the object.

pre_run

Method to call before run() starts its work. run() will call this for you. By default this is a no-op, but you can redefine it or override it in a subclass.

run() calls this method immediately after it creates the object but before it initializes it.

post_run

Method to call after run() ends its work. run() will call this for you. By default this is a no-op, but you can redefine it or override it in a subclass.

cook

Take the templates and cook them. This version uses Template Toolkit, but you can make a subclass to override it.

module( [ MODULE_NAME ] )

Return the module name. With an argument, set the module name.

dist( [ DIST_NAME ] )

Return the module name. With an argument, set the module name.

module_to_distname( MODULE_NAME )

Take a module name, such as Foo::Bar, and turn it into a distribution name, such as Foo-Bar.

prompt( MESSAGE )

Show the user MESSAGE, grap a line from STDIN, and return it.

TO DO ^

SEE ALSO ^

SOURCE AVAILABILITY ^

AUTHOR ^

brian d foy, <bdfoy@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright (c) 2008, brian d foy, All Rights Reserved.

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

syntax highlighting: