1 package App::Rgit::Command::Each;
6 use base qw<App::Rgit::Command>;
9 use App::Rgit::Utils qw<:codes>;
13 App::Rgit::Command::Each - Class for commands to execute for each repository.
21 our $VERSION = '0.08';
25 Class for commands to execute for each repository.
27 This is an internal class to L<rgit>.
31 This class inherits from L<App::Rgit::Command>.
47 my $guard = App::Rgit::Guard->new(sub { $conf->cwd_repo->chdir if $repos });
49 for (@{$conf->repos}) {
53 ($status, my $signal) = $_->run($conf, @{$self->args});
55 $code = $self->report($conf, $_, $status, $signal) unless defined $code;
59 undef $code; # Don't save it, that would be very dumb
62 undef $code unless $code & SAVE;
65 return wantarray ? ($status, $code) : $status;
72 L<App::Rgit::Command>.
76 Vincent Pit, C<< <perl at profvince.com> >>, L<http://profvince.com>.
78 You can contact me by mail or on C<irc.perl.org> (vincent).
82 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>.
83 I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
87 You can find documentation for this module with the perldoc command.
89 perldoc App::Rgit::Command::Each
91 =head1 COPYRIGHT & LICENSE
93 Copyright 2008,2009,2010 Vincent Pit, all rights reserved.
95 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
99 1; # End of App::Rgit::Command::Each