CPANPLUS::Dist::GitHook - Use Git::CPAN::Hook to commit each install in a Git repository
version 0.02
# CPANPLUS configuration cpanp> s conf dist_type CPANPLUS::Dist::GitHook cpanp> s save # Git::CPAN::Hook configuration # put your local::lib under Git control $ perl -MGit::CPAN::Hook -e init ~/perl5 # Use cpanp/CPANPLUS normally. # or use cpan2dist $ cpan2dist --format CPANPLUS::Dist::GitHook --install Some::Funky::Module
CPANPLUS::Dist::GitHook integrates Philippe Bruhat's Git::CPAN::Hook module into CPANPLUS.
Commits are made after any install or uninstall that CPANPLUS undertakes.
install
uninstall
The following methods are provided. They are not meant to be called directly by the user.
Called to install a distribution. This will in turn call the parent install method, check the return status and call Git::CPAN::Hook's commit method.
commit
Called to uninstall a distribution. This will in turn call the parent uninstall method, check the return status and call Git::CPAN::Hook's commit method.
CPANPLUS
Git::CPAN::Hook
cpan2dist
Chris Williams <chris@bingosnet.co.uk>
This software is copyright (c) 2011 by Chris Williams.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install CPANPLUS::Dist::GitHook, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CPANPLUS::Dist::GitHook
CPAN shell
perl -MCPAN -e shell install CPANPLUS::Dist::GitHook
For more information on module installation, please visit the detailed CPAN module installation guide.