X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Frgit.git;a=blobdiff_plain;f=lib%2FApp%2FRgit%2FPolicy%2FInteractive.pm;h=fd4d9df8609aab26d41d24dc84e5a97cb8696451;hp=f6f20b501d5199059a77f1d1f15f9ec6da2669fc;hb=cb9eb6a59510dcfb9aaf05e09d2612aa0a9e18e3;hpb=88bfe285dbd8fe5cb70f28ff9ad9dee16631dd52 diff --git a/lib/App/Rgit/Policy/Interactive.pm b/lib/App/Rgit/Policy/Interactive.pm index f6f20b5..fd4d9df 100644 --- a/lib/App/Rgit/Policy/Interactive.pm +++ b/lib/App/Rgit/Policy/Interactive.pm @@ -21,6 +21,23 @@ Version 0.06 our $VERSION = '0.06'; +=head1 DESCRIPTION + +When a run exited with non-zero status, this policy asks the user whether he wants to ignore and continue with the next repository, ignore all future possible errors, retry this run or open a shell in the current repository. +In this last case, the user will be asked again what to do when he will close the shell. + +=head1 METHODS + +This class inherits from L. + +It implements : + +=head2 C + +The constructor will die if L can't be loaded. + +=cut + my ($int_code, $shell); sub new { @@ -46,6 +63,10 @@ sub new { $class->SUPER::new(@_); } +=head2 C + +=cut + my %codes = ( 'a' => [ LAST, 'aborting' ], 'i' => [ NEXT, 'ignoring' ], @@ -53,7 +74,7 @@ my %codes = ( 'r' => [ REDO, 'retrying' ], ); -sub report { +sub handle { my ($policy, $cmd, $conf, $repo, $status, $signal) = @_; return NEXT unless $status; @@ -94,6 +115,10 @@ sub report { L. +L. + +L. + =head1 AUTHOR Vincent Pit, C<< >>, L.