6 use Object::Tiny qw/config command/;
8 use App::Rgit::Command;
10 use App::Rgit::Utils qw/validate/;
14 App::Rgit - Backend that supports the rgit utility.
22 our $VERSION = '0.03';
26 Backend that supports the L<rgit> utility.
28 This is an internal class to L<rgit>.
32 =head2 C<< new root => $root, git => $git, cmd => $cmd, args => \@args >>
34 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.
39 my ($class, %args) = &validate;
40 my $config = App::Rgit::Config->new(
44 return unless defined $config;
45 my $command = App::Rgit::Command->new(
48 policy => $args{policy},
50 return unless defined $command;
59 Actually run the commands.
65 $self->command->run($self->config);
80 Vincent Pit, C<< <perl at profvince.com> >>, L<http://profvince.com>.
82 You can contact me by mail or on C<irc.perl.org> (vincent).
86 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.
90 You can find documentation for this module with the perldoc command.
94 =head1 COPYRIGHT & LICENSE
96 Copyright 2008 Vincent Pit, all rights reserved.
98 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
102 1; # End of App::Rgit