brian d foy > Distribution-Cooker-1.01 > dist_cooker

Download:
Distribution-Cooker-1.01.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

dist_cooker - create a Perl distribution skeleton from personal templates

SYNOPSIS ^

        # from the command line, to create a distribution for Module::Name
        % dist_cooker Module::Name

DESCRIPTION ^

dist_cooker builds a Perl distribution skeleton from template files. You create the templates however you like.

By default, I assume my own favorite values, and haven't made these customizable yet.

ttree (from Template) is in /usr/local/bin/ttree
Your distribution template directory is ~/.templates/dist_cooker
Your module template name is lib/Foo.pm

When cook processes the templates, it provides definitions for these template variables:

module => the package name (Foo::Bar)
module_file => module file name (Bar.pm)
module_dist => the distribution name (Foo-Bar)

Writing a subclass

To provide a different set of defaults, or more customizable behavior, create your own subclass of Distribution::Cooker. Specialize the parts that you need.

TO DO ^

Distribution::Cooker needs to provide a way for people to override the defaults without having to write a subclass.

SEE ALSO ^

Other modules, such as Module:Starter, do a similar job but don't give you as much flexibility with your templates.

SOURCE AVAILABILITY ^

This module is in Github:

        http://github.com/briandfoy/distribution--cooker/

AUTHOR ^

brian d foy, <bdfoy@cpan.org>

COPYRIGHT AND LICENSE ^

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

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

syntax highlighting: