Peter Flanigan > Module-Provision > Module::Provision::TraitFor::UpdatingContent

Download:
module-provision/Module-Provision-0.31.2.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: v0.31.2   Source  

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';

Version ^

This documents version v0.31.$Rev: 2 $ of 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 ^

Class::Usul
Moose::Role

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

syntax highlighting: