Module::Starter3pm
A simple starter kit for any module
Usage
Nothing in here is meant for public consumption. Use module-starter from the command line.
module-starter --module=Foo::Bar,Foo::Bat \--author="Andy Lester" [email protected]
Version
version 1.77
Overview
This is the core module for Module::Starter. If you're not looking to extend or alter the behavior of this module, you probably want to look at module-starter instead.
Module::Starter is used to create a skeletal CPAN distribution, including basic builder scripts, tests, documentation, and module code. This is done through just one method, "create_distro".
Methods
Module::Starter->create_distro(%args)
"create_distro" is the only method you should need to use from outside this module; all the other methods are called internally by this one.
This method creates orchestrates all the work; it creates distribution and populates it with the all the requires files.
It takes a hash of params, as follows:
distro => $distroname, # distribution name (defaults to first module)modules => [ module names ], # modules to create in distrodir => $dirname, # directory in which to build distrobuilder => 'Module::Build', # defaults to ExtUtils::MakeMaker# or specify more than one builder in an# arrayreflicense => $license, # type of license; defaults to 'artistic2'author => $author, # author's full name (taken from C<getpwuid> if not provided)email => $email, # author's email address (taken from C<EMAIL> if not provided)ignores_type => $type, # ignores file type ('generic', 'cvs', 'git', 'hg', 'manifest' )fatalize => $fatalize, # generate code that makes warnings fatalverbose => $verbose, # bool: print progress messages; defaults to 0force => $force # bool: overwrite existing files; defaults to 0
The ignores_type is a new feature that allows one to create SCM-specific ignore files. These are the mappings:
ignores_type => 'generic' # default, creates 'ignore.txt'ignores_type => 'cvs' # creates .cvsignoreignores_type => 'git' # creates .gitignoreignores_type => 'hg' # creates .hgignoreignores_type => 'manifest' # creates MANIFEST.SKIP
It is also possible to provide an array ref with multiple types wanted:
ignores_type => [ 'git', 'manifest' ]
Plugins
Module::Starter itself doesn't actually do anything. It must load plugins that implement "create_distro" and other methods. This is done by the class's "import" routine, which accepts a list of plugins to be loaded, in order.
For more information, refer to Module::Starter::Plugin.
Support
You can find documentation for this module with the perldoc command.
perldoc Module::Starter
You can also look for information at:
- •
-
Source code at GitHub
<https://github.com/xsawyerx/module-starter>
- •
-
CPAN Ratings
<http://cpanratings.perl.org/dist/Module-Starter>
- •
-
GitHub issue tracker
<https://github.com/xsawyerx/module-starter/issues>
- •
-
Search CPAN
<https://metacpan.org/release/Module-Starter>
Releases
9 releases since Debian 5.0 (Lenny); the text changed 7 times.