Module::Provision::TraitFor::UpdatingContent - Perform search and replace on project file content
use Moose; extends 'Module::Provision::Base'; with 'Module::Provision::TraitFor::UpdatingContent';
Perform search and replace on project file content
Requires the following attributes to be defined in the consuming class; appldir
appldir
Defines no attributes
$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
$to
$from
$path
$exit_code = $self->update_copyright_year;
Substitutes the existing copyright year for the new copyright year in all files in the MANIFEST
$exit_code = $self->update_version;
Substitutes the existing version number for the new version number in all files in the MANIFEST
$self->update_version_pre_hook;
Returns it's input args by default. Can be modified by applied traits
$self->update_version_post_hook;
Does nothing by default. Can be modified by applied traits
None
There are no known incompatibilities in this module
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Larry Wall - For the Perl programming language
Peter Flanigan, <pjfl@cpan.org>
<pjfl@cpan.org>
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
To install Module::Provision, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::Provision
CPAN shell
perl -MCPAN -e shell install Module::Provision
For more information on module installation, please visit the detailed CPAN module installation guide.