]> git.vpit.fr Git - perl/modules/rgit.git/blobdiff - lib/App/Rgit/Command.pm
Doc update
[perl/modules/rgit.git] / lib / App / Rgit / Command.pm
index f2f043bd05b0b65aed70e2a0607e9515a7e65268..cf58e94b80e8f241a00ecdccb101221d80686a1a 100644 (file)
@@ -85,7 +85,7 @@ sub action {
 sub report {
  my ($self) = @_;
  my $cb = $self->policy;
- return NEXT | SAVE unless $cb;
+ return $_[3] ? LAST : NEXT unless $cb;
  my $code = $cb->(@_);
  return defined $code ? $code : NEXT;
 }
@@ -101,8 +101,7 @@ Accessors.
 =head2 C<run $conf>
 
 Runs the command with a L<App::Rgit::Config> configuration object.
-Stops as soon as one of the executed commands fails, and returns the corresponding exit code.
-Returns zero when all went fine.
+Handles back the code to return to the system and the last policy.
 Implemented in subclasses.
 
 =head1 SEE ALSO