App::Rgit::Command - Base class for App::Rgit commands.
Version 0.08
Base class for App::Rgit commands.
This is an internal class to rgit.
new cmd => $cmd, args => \@args
Creates a new command object for $cmd that is bound to be called with arguments @args.
$cmd
@args
action $cmd [ => $pkg ]
If $pkg is supplied, handles command $cmd with $pkg objects. Otherwise, returns the current class for $cmd.
$pkg
report $conf, $repo, $status
Reports that the execution of the command in $repo exited with $status to the current command's policy. Returns what policy report method returned, which should be one of the policy codes listed in App::Rgit::Utils.
$repo
$status
report
App::Rgit::Utils
cmd
args
policy
Read-only accessors.
run $conf
Runs the command with a App::Rgit::Config configuration object. Handles back the code to return to the system and the last policy. Implemented in subclasses.
rgit.
Vincent Pit, <perl at profvince.com>, http://profvince.com.
<perl at profvince.com>
You can contact me by mail or on irc.perl.org (vincent).
irc.perl.org
Please report any bugs or feature requests to bug-rgit at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=rgit. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-rgit at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc App::Rgit::Command
Copyright 2008,2009,2010 Vincent Pit, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install App::Rgit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Rgit
CPAN shell
perl -MCPAN -e shell install App::Rgit
For more information on module installation, please visit the detailed CPAN module installation guide.