Module::Provision::TraitFor::VCS - Version Control
use Module::Provision::TraitFor::VCS; # Brief but working code examples
Interface to Version Control Systems
Modifies "dist_post_hook" in Module::Provision::TraitFor::CreatingDistributions where it initializes the VCS, ignore meta files and resets the revision number file
Modifies "substitute_version" in Module::Provision::TraitFor::UpdatingContent where it resets the Revision keyword values
Modifies "update_version_pre_hook" in Module::Provision::TraitFor::UpdatingContent where it prompts for version numbers and creates tagged releases
Modifies "update_version_post_hook" in Module::Provision::TraitFor::UpdatingContent where it resets the revision number file
Requires these attributes to be defined in the consuming class; appldir, distname, vcs
appldir
distname
vcs
Defines the following attributes;
no_auto_rev
Do not turn on automatic Revision keyword expansion. Defaults to FALSE
FALSE
$exit_code = $self->add_hooks;
Returns the exit code
$self->add_to_vcs( $target, $type );
Add the target file to the VCS
$io_object = $self->get_emacs_state_file_path( $file_name );
Returns the File::DataClass::IO object for the path to the Emacs editor's state file
$exit_code = $self->set_branch;
Sets the current branch to the value supplied on the command line
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) 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
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.