1 package App::Rgit::Utils;
10 App::Rgit::Utils - Miscellanous utilities for App::Rgit classes.
18 our $VERSION = '0.04';
22 Miscellanous utilities for L<App::Rgit> classes.
24 This is an internal module to L<rgit>.
28 =head2 C<NEXT>, C<REDO>, C<LAST>, C<SAVE>
30 Codes to return from the C<report> callback to respectively proceed to the next repository, retry the current one, end it all, and save the return code.
43 =head2 C<validate @method_args>
45 Sanitize arguments passed to methods.
51 croak 'Optional arguments must be passed as key/value pairs' if @_ % 2;
52 $class = ref($class) || $class;
53 $class = caller unless $class;
59 C<validate> is only exported on request, either by its name or by the C<'funcs'> tag.
61 C<NEXT> C<REDO>, C<LAST> and C<SAVE> are only exported on request, either by their name or by the C<'codes'> tags.
65 use base qw/Exporter/;
69 funcs => [ qw/validate/ ],
70 codes => [ qw/SAVE NEXT REDO LAST/ ],
72 our @EXPORT_OK = map { @$_ } values %EXPORT_TAGS;
73 $EXPORT_TAGS{'all'} = [ @EXPORT_OK ];
81 Vincent Pit, C<< <perl at profvince.com> >>, L<http://profvince.com>.
83 You can contact me by mail or on C<irc.perl.org> (vincent).
87 Please report any bugs or feature requests to C<bug-rgit at rt.cpan.org>, or through the web interface at L<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.
91 You can find documentation for this module with the perldoc command.
93 perldoc App::Rgit::Utils
95 =head1 COPYRIGHT & LICENSE
97 Copyright 2008 Vincent Pit, all rights reserved.
99 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
103 1; # End of App::Rgit::Utils