Last change
on this file since 1023 was
1023,
checked in by nanardon, 12 years ago
|
This patch a basic documentation to all functions.
It also add two test to ensure all POD syntax are correct and coverage is full.
|
File size:
1.0 KB
|
Line | |
---|
1 | package LATMOS::Accounts::Task::Buildnet; |
---|
2 | |
---|
3 | use strict; |
---|
4 | use warnings; |
---|
5 | use base qw(LATMOS::Accounts::Task); |
---|
6 | use LATMOS::Accounts::BuildNet; |
---|
7 | |
---|
8 | =head1 NAME |
---|
9 | |
---|
10 | LATMOS::Accounts::Task::Buildnet - Task to generate network configuration files |
---|
11 | |
---|
12 | =cut |
---|
13 | |
---|
14 | # Always try because depend also on files: |
---|
15 | sub needupd { |
---|
16 | return 1; |
---|
17 | } |
---|
18 | |
---|
19 | sub run { |
---|
20 | my ($self) = @_; |
---|
21 | my $LA = LATMOS::Accounts::BuildNet->new($self->{config}, noacl => 1); |
---|
22 | |
---|
23 | my $labase = $self->{base} ? $LA->base($self->{base}) : $LA->default_base; |
---|
24 | $labase && $labase->load or die "Cannot load base"; |
---|
25 | |
---|
26 | $LA->gen_all; |
---|
27 | } |
---|
28 | |
---|
29 | 1; |
---|
30 | |
---|
31 | __END__ |
---|
32 | |
---|
33 | =head1 SEE ALSO |
---|
34 | |
---|
35 | L<LATMOS::Accounts::Task>, L<LATMOS::Accounts::BuildNet> |
---|
36 | |
---|
37 | =head1 AUTHOR |
---|
38 | |
---|
39 | Olivier Thauvin, E<lt>olivier.thauvin@latmos.ipsl.frE<gt> |
---|
40 | |
---|
41 | =head1 COPYRIGHT AND LICENSE |
---|
42 | |
---|
43 | Copyright (C) 2008, 2009, 2010, 2011, 2012 CNRS SA/CETP/LATMOS |
---|
44 | |
---|
45 | This library is free software; you can redistribute it and/or modify |
---|
46 | it under the same terms as Perl itself, either Perl version 5.10.0 or, |
---|
47 | at your option, any later version of Perl 5 you may have available. |
---|
48 | |
---|
49 | =cut |
---|
Note: See
TracBrowser
for help on using the repository browser.