Name
Module::Provision::TraitFor::CreatingDistributions - Create distributions
Synopsis
use Moose;
extends 'Module::Provision::Base';
with 'Module::Provision::TraitFor::CreatingDistributions';
Version
This documents version v0.9.$Rev: 5 $ of Module::Provision::TraitFor::CreatingDistributions
Description
Create distributions using either Git or SVN for the VCS
Configuration and Environment
Requires these attributes to be defined in the consuming class; appbase
, appldir
, builder
, exec_perms
, homedir
, incdir
, project_file
, stash
, testdir
, and vcs
Defines no attributes
Subroutines/Methods
create_directories
$self->create_directories;
Creates the required directories for the new distribution. If subclassed this method can be modified to include additional directories
dist
$exit_code = $self->dist;
Create a new distribution specified by the module name on the command line
generate_metadata
$exit_code = $self->generate_metadata;
Generates the distribution metadata files
populate_directories
$self->populate_directories;
An empty subroutine to modify in another role
post_hook
$self->post_hook;
Runs after the new distribution has been created. If subclassed this method can be modified to perform additional actions after the templates have been rendered
pre_hook
$self->pre_hook;
Runs before the new distribution is created. If subclassed this method can be modified to perform additional actions before the project directories are created
test_distribution
$self->test_distribution;
Tests the distribution
Diagnostics
None
Dependencies
Incompatibilities
There are no known incompatibilities in this module
Bugs and Limitations
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Acknowledgements
Larry Wall - For the Perl programming language
Author
Peter Flanigan, <pjfl@cpan.org>
License and Copyright
Copyright (c) 2013 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE