1 package App::Rgit::Config::Default;
6 use File::Find qw/find/;
8 use base qw/App::Rgit::Config/;
10 use App::Rgit::Repository;
14 App::Rgit::Config::Default - Default App::Rgit configuration class.
22 our $VERSION = '0.07';
26 Default L<App::Rgit> configuration class.
28 This is an internal class to L<rgit>.
32 This class inherits from L<App::Rgit::Config>.
42 return $self->{repos} if defined $self->{repos};
46 return if m{(?:^|/)\.\.?$}
47 or not (-d $_ and -r _);
48 if (my $r = App::Rgit::Repository->new(dir => $_)) {
49 $File::Find::prune = 1;
50 $repos{$r->repo} = $r unless exists $repos{$r->repo};
56 $self->{repos} = [ sort { $a->repo cmp $b->repo } values %repos ];
67 Vincent Pit, C<< <perl at profvince.com> >>, L<http://profvince.com>.
69 You can contact me by mail or on C<irc.perl.org> (vincent).
73 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>.
74 I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
78 You can find documentation for this module with the perldoc command.
80 perldoc App::Rgit::Command::Default
82 =head1 COPYRIGHT & LICENSE
84 Copyright 2008,2009,2010 Vincent Pit, all rights reserved.
86 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
90 1; # End of App::Rgit::Command::Default