Changeset 1023 for trunk/LATMOS-Accounts/lib/LATMOS/Accounts/SyncManager.pm
- Timestamp:
- 05/29/12 10:25:51 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/SyncManager.pm
r1017 r1023 5 5 use LATMOS::Accounts::Log; 6 6 use LATMOS::Accounts; 7 8 =head1 NAME 9 10 LATMOS::Accounts::SyncManager - Routine task manager 11 12 =head1 DESCRIPTION 13 14 Handle Task process run by L<la-sync-manager> 15 16 =head1 FUNCTIONS 17 18 =cut 19 20 =head2 new($config) 21 22 Instaciate object. 23 24 C<$config> is a path to an alternative configuration file to default one. 25 26 =cut 7 27 8 28 sub new { … … 24 44 } 25 45 46 =head2 ini 47 48 Return a reference to the L<Ini::Files> object handling configuration. 49 50 =cut 51 26 52 sub ini { $_[0]->{ini} } 27 53 54 =head2 dbrev 55 56 Return the current base revision 57 58 =cut 59 28 60 sub dbrev { $_[0]->{lastrev} } 61 62 =head2 updrev 63 64 Update status file with with current base revision as restart point 65 66 =cut 29 67 30 68 sub updrev { … … 37 75 } 38 76 77 =head2 list_modules 78 79 List configured task module 80 81 =cut 82 39 83 sub list_modules { 40 84 my ($self) = @_; 41 85 $self->ini->Sections; 42 86 } 87 88 =head2 process_module($module, $dbrev) 89 90 Process C<$module>. 91 92 =cut 93 94 # TODO what is $dbrev, why is it need here ?? 43 95 44 96 sub process_module { … … 90 142 91 143 1; 144 145 __END__ 146 147 =head1 SEE ALSO 148 149 L<LATMOS::Accountsi::Task> 150 151 =head1 AUTHOR 152 153 Olivier Thauvin, E<lt>olivier.thauvin@latmos.ipsl.frE<gt> 154 155 =head1 COPYRIGHT AND LICENSE 156 157 Copyright (C) 2012 CNRS SA/CETP/LATMOS 158 159 This library is free software; you can redistribute it and/or modify 160 it under the same terms as Perl itself, either Perl version 5.10.0 or, 161 at your option, any later version of Perl 5 you may have available. 162 163 =cut
Note: See TracChangeset
for help on using the changeset viewer.