Name
Module::Provision::TraitFor::UpdatingContent - Perform search and replace on project file content
Synopsis
use Moose;
extends 'Module::Provision::Base';
with 'Module::Provision::TraitFor::UpdatingContent';
Description
Perform search and replace on project file content
Configuration and Environment
Requires the following attributes to be defined in the consuming class; appldir
Defines no attributes
Subroutines/Methods
substitute_version
$self->substitute_version( $path, $from, $to );
Substitutes the $to
string everywhere the $from
pattern occurs in the $path
file. The $path
argument should be of type File::DataClass::IO
update_copyright_year - Updates the copyright year in the POD
$exit_code = $self->update_copyright_year;
Substitutes the existing copyright year for the new copyright year in all files in the MANIFEST
update_version - Updates the version numbers in all files
$exit_code = $self->update_version;
Substitutes the existing version number for the new version number in all files in the MANIFEST
update_version_pre_hook
$self->update_version_pre_hook;
Returns it's input args by default. Can be modified by applied traits
update_version_post_hook
$self->update_version_post_hook;
Does nothing by default. Can be modified by applied traits
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