]> git.vpit.fr Git - perl/modules/rgit.git/blobdiff - lib/App/Rgit/Policy/Default.pm
Switch qw delimiters to <>
[perl/modules/rgit.git] / lib / App / Rgit / Policy / Default.pm
index d8d286bd0440b75dce5ce87ad860395a9e094f45..f1b71fe2b2b5e6256091a9666e3b1e904e7f8e0d 100644 (file)
@@ -3,9 +3,9 @@ package App::Rgit::Policy::Default;
 use strict;
 use warnings;
 
-use App::Rgit::Utils qw/:codes/;
+use App::Rgit::Utils qw<:codes>;
 
-use base qw/App::Rgit::Policy/;
+use base qw<App::Rgit::Policy>;
 
 =head1 NAME
 
@@ -13,13 +13,28 @@ App::Rgit::Policy::Default - The default policy that stops on error.
 
 =head1 VERSION
 
-Version 0.06
+Version 0.08
 
 =cut
 
-our $VERSION = '0.06';
+our $VERSION = '0.08';
 
-sub report {
+=head1 DESCRIPTION
+
+This is the default policy.
+It stops as soon as a run returned a non-zero status, but continues if it was signalled.
+
+=head1 METHODS
+
+This class inherits from L<App::Rgit::Policy>.
+
+It implements :
+
+=head2 C<handle>
+
+=cut
+
+sub handle {
  my ($policy, $cmd, $conf, $repo, $status, $signal) = @_;
 
  $status ? LAST : NEXT;
@@ -29,6 +44,8 @@ sub report {
 
 L<rgit>.
 
+L<App::Rgit::Policy>.
+
 =head1 AUTHOR
 
 Vincent Pit, C<< <perl at profvince.com> >>, L<http://profvince.com>.