Module::Starter::Simple - a simple, comprehensive Module::Starter plugin
use Module::Starter qw(Module::Starter::Simple); Module::Starter->create_distro(%args);
Module::Starter::Simple is a plugin for Module::Starter that will perform all the work needed to create a distribution. Given the parameters detailed in Module::Starter, it will create content, create directories, and populate the directories with the required files.
This method works as advertised in Module::Starter.
This method is called to construct and initialize a new Module::Starter object. It is never called by the end user, only internally by
create_distro, which creates ephemeral Module::Starter objects. It's documented only to call it to the attention of subclass authors.
All the methods documented below are object methods, meant to be called internally by the ephemperal objects created during the execution of the class method
Creates the base directory for the distribution. If the directory already exists, and $force is true, then the existing directory will get erased.
If the directory can't be created, or re-created, it dies.
This method will create a starter module file for each module named in @modules.
This method returns the text which should serve as the contents for the named module. $rtname is the email suffix which rt.cpan.org will use for bug reports. (This should, and will, be moved out of the parameters for this method eventually.)
This will create the Makefile.PL for the distribution, and will use the module named in $main_module as the main module of the distribution.
This will create a Module::Install Makefile.PL for the distribution, and will use the module named in $main_module as the main module of the distribution.
This method is called by create_Makefile_PL and returns text used to populate Makefile.PL; $main_pm_file is the filename of the distribution's main module, $main_module.
This method is called by create_MI_Makefile_PL and returns text used to populate Makefile.PL; $main_pm_file is the filename of the distribution's main module, $main_module.
This will create the Build.PL for the distribution, and will use the module named in $main_module as the main module of the distribution.
This method is called by create_Build_PL and returns text used to populate Build.PL; $main_pm_file is the filename of the distribution's main module, $main_module.
This method creates a skeletal Changes file.
Called by create_Changes, this method returns content for the Changes file.
This method creates the distribution's README file.
Called by create_README, this method returns content for the README file.
This method creates a bunch of *.t files. @modules is a list of all modules in the distribution.
This method is called by create_t, and returns a description of the *.t files to be created.
The return value is a hash of test files to create. Each key is a filename and each value is the contents of that file.
This method creates the distribution's MANIFEST file. It must be run last, because all the other create_* functions have been returning the functions they create.
This method is called by
create_MANIFEST, and returns content for the MANIFEST file.
This method creates the build file(s) and puts together some build instructions. The builders currently supported are:
ExtUtils::MakeMaker Module::Build Module::Install
This creates a .cvsignore file in the distribution's directory so that your CVS knows to ignore certain files.
create_cvsignore, this method returns the contents of the cvsignore file.
verbose tells us whether we're in verbose mode.
Creates $fname, dumps @content_lines in it, and closes it. Dies on any error.
progress prints the given progress message if we're in verbose mode.
Please report any bugs or feature requests to
bug-module-starter at rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
Copyright 2005-2007 Andy Lester and C.J. Adams-Collier, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Please note that these modules are not products of or supported by the employers of the various contributors to the code.