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.05';
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(
43 debug => $args{debug},
45 return unless defined $config;
46 my $command = App::Rgit::Command->new(
49 policy => $args{policy},
51 return unless defined $command;
60 Actually run the commands.
66 $self->command->run($self->config);
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.
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