source: trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Task/Buildnet.pm @ 1023

Last change on this file since 1023 was 1023, checked in by nanardon, 12 years ago
  • complete POD

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 
1package LATMOS::Accounts::Task::Buildnet;
2
3use strict;
4use warnings;
5use base qw(LATMOS::Accounts::Task);
6use LATMOS::Accounts::BuildNet;
7
8=head1 NAME
9
10LATMOS::Accounts::Task::Buildnet - Task to generate network configuration files
11
12=cut
13
14# Always try because depend also on files:
15sub needupd {
16    return 1;
17}
18
19sub 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
291;
30
31__END__
32
33=head1 SEE ALSO
34
35L<LATMOS::Accounts::Task>, L<LATMOS::Accounts::BuildNet>
36
37=head1 AUTHOR
38
39Olivier Thauvin, E<lt>olivier.thauvin@latmos.ipsl.frE<gt>
40
41=head1 COPYRIGHT AND LICENSE
42
43Copyright (C) 2008, 2009, 2010, 2011, 2012 CNRS SA/CETP/LATMOS
44
45This library is free software; you can redistribute it and/or modify
46it under the same terms as Perl itself, either Perl version 5.10.0 or,
47at 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.