]> git.vpit.fr Git - perl/modules/rgit.git/blob - lib/App/Rgit/Command/Once.pm
Move the fake root repository from the Command to the Config object
[perl/modules/rgit.git] / lib / App / Rgit / Command / Once.pm
1 package App::Rgit::Command::Once;
2
3 use strict;
4 use warnings;
5
6 use base qw/App::Rgit::Command/;
7
8 =head1 NAME
9
10 App::Rgit::Command::Once - Class for commands to execute only once.
11
12 =head1 VERSION
13
14 Version 0.02
15
16 =cut
17
18 our $VERSION = '0.02';
19
20 =head1 DESCRIPTION
21
22 Class for commands to execute only once.
23
24 This is an internal class to L<rgit>.
25
26 =head1 METHODS
27
28 This class inherits from L<App::Rgit::Command>.
29
30 It implements :
31
32 =head2 C<run>
33
34 =cut
35
36 sub run {
37  my ($self, $conf) = @_;
38  $conf->root_repo->run($conf, @{$self->args});
39 }
40
41 =head1 SEE ALSO
42
43 L<rgit>.
44
45 =head1 AUTHOR
46
47 Vincent Pit, C<< <perl at profvince.com> >>, L<http://profvince.com>.
48
49 You can contact me by mail or on C<irc.perl.org> (vincent).
50
51 =head1 BUGS
52
53 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.
54
55 =head1 SUPPORT
56
57 You can find documentation for this module with the perldoc command.
58
59     perldoc App::Rgit::Command::Once
60
61 =head1 COPYRIGHT & LICENSE
62
63 Copyright 2008 Vincent Pit, all rights reserved.
64
65 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
66
67 =cut
68
69 1; # End of App::Rgit::Command::Once