1 package App::Rgit::Command::Each;
6 use base qw/App::Rgit::Command/;
8 use App::Rgit::Utils qw/:codes/;
12 App::Rgit::Command::Each - Class for commands to execute for each repository.
20 our $VERSION = '0.03';
24 Class for commands to execute for each repository.
26 This is an internal class to L<rgit>.
30 This class inherits from L<App::Rgit::Command>.
43 for (@{$conf->repos}) {
45 ($status, my $signal) = $_->run($conf, @{$self->args});
46 $code = $self->report($conf, $_, $status, $signal) unless defined $code;
49 undef $code; # Don't save it, that would be very dumb
52 undef $code unless $code & SAVE;
54 $conf->cwd_repo->chdir;
55 return wantarray ? ($status, $code) : $status;
64 Vincent Pit, C<< <perl at profvince.com> >>, L<http://profvince.com>.
66 You can contact me by mail or on C<irc.perl.org> (vincent).
70 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.
74 You can find documentation for this module with the perldoc command.
76 perldoc App::Rgit::Command::Each
78 =head1 COPYRIGHT & LICENSE
80 Copyright 2008 Vincent Pit, all rights reserved.
82 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
86 1; # End of App::Rgit::Command::Each