6 use App::Rgit::Command;
8 use App::Rgit::Utils qw/validate/;
12 App::Rgit - Backend that supports the rgit utility.
20 our $VERSION = '0.06';
24 Backend that supports the L<rgit> utility.
26 This is an internal class to L<rgit>.
30 =head2 C<< new root => $root, git => $git, cmd => $cmd, args => \@args >>
32 Creates a new L<App::Rgit> object that's bound to execute the command C<$cmd> on all the C<git> repositories inside C<$root> with C<@args> as arguments and C<$git> as C<git> executable.
37 my ($class, %args) = &validate;
38 my $config = App::Rgit::Config->new(
41 debug => $args{debug},
43 return unless defined $config;
44 my $command = App::Rgit::Command->new(
47 policy => $args{policy},
49 return unless defined $command;
58 Actually run the commands.
64 $self->command->run($self->config);
76 eval "sub $_ { \$_[0]->{$_} }" for qw/config command/;
85 Vincent Pit, C<< <perl at profvince.com> >>, L<http://profvince.com>.
87 You can contact me by mail or on C<irc.perl.org> (vincent).
91 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.
95 You can find documentation for this module with the perldoc command.
99 =head1 COPYRIGHT & LICENSE
101 Copyright 2008-2009 Vincent Pit, all rights reserved.
103 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
107 1; # End of App::Rgit