diff --git a/lib/FusionInventory/Agent/Task/Deploy/Maintenance.pm b/lib/FusionInventory/Agent/Task/Deploy/Maintenance.pm index db286e7a64..63319e9775 100644 --- a/lib/FusionInventory/Agent/Task/Deploy/Maintenance.pm +++ b/lib/FusionInventory/Agent/Task/Deploy/Maintenance.pm @@ -51,6 +51,23 @@ This module provides the Maintenance run function to cleanup Deploy environment. =head1 FUNCTIONS -=head2 doMaintenance ( $class, %params ) +=head2 new(%params) + +The constructor. The following parameters are allowed, as keys of the %params +hash: + +=over + +=item I + +the logger object to use (default: a new stderr logger) + +=item I + +=item I + +=back + +=head2 doMaintenance() Cleanup the deploy datastore associated with the target. diff --git a/lib/FusionInventory/Agent/Task/Maintenance.pm b/lib/FusionInventory/Agent/Task/Maintenance.pm index e2f6acdb89..36995a1aab 100644 --- a/lib/FusionInventory/Agent/Task/Maintenance.pm +++ b/lib/FusionInventory/Agent/Task/Maintenance.pm @@ -85,13 +85,13 @@ and safe. =head1 FUNCTIONS -=head2 isEnabled ( $self ) +=head2 isEnabled() Lookup for a Maintenance module for each target enabled tasks. Returns true if the task should be finally enabled. -=head2 run ( $self ) +=head2 run() Run the Maintenance task by calling each doMaintenance() API from each task Maintenance found modules.