Name
Module::Provision::TraitFor::AddingFiles - Adds additional files to the project
Synopsis
use Moose;
extends 'Module::Provision::Base';
with 'Module::Provision::TraitFor::AddingFiles';
Description
Adds additional modules, programs, and tests to the project
Configuration and Environment
Requires the following attributes to be defined in the consuming class; add_to_vcs
, appldir
, binsdir
, exec_perms
, libdir
, module_abstract
, render_template
, stash
, and testdir
Modifies the generate_metadata
method. If generate_metadata
returns a pathname and the file exists it is added to the VCS
Defines no attributes
Subroutines/Methods
module - Create a new Perl module file
$exit_code = $self->module;
Creates a new module specified by the class name on the command line
program - Create a new Perl program file
$exit_code = $self->program;
Creates a new program specified by the program name on the command line
test - Create a new Perl test script
$exit_code = $self->test;
Creates a new test specified by the test file name on the command line
update_file - Updates a project file with one from the template directory
$exit_code = $self->update;
After changes have been made to template files the command can be used to update individual project files
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) 2017 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