FusionInventory::Agent::Task::Deploy::UserCheck - Deploy task user checks
This module provides object class to interact with logged users during a deploy task.
It can be used for any job managed during one deploy task. It can be used before the downloading step and/or after the actions processing. This may give a chance for user to stop the current job or to be alerted of done job.
The object is intended to show a modal windows or a notification to any logged user.
While instanciated, the
Returns a newly created FusionInventory::Agent::Task::Deploy::UserCheck object.
Availables parameters:
Supported values for check hasf ref:
Following values may to be used to define what should be done while buttons are clicked or related event occurs:
Each event should be a string with the following format: "<local_policy>:<server_policy>:<message to send back>"
<local_policy> must be one of the following string:
<server_policy> should be a string send back to server as status. <message to send back> should be a string send back to server as status message.
Remark: as semi-colon is used as delimiter, server should not use it in sent policy.
Start the user interaction and wait until all expected events occurred.
Be careful, this may block the caller as long as the defined time-out, and even more on server handling a lot of user sessions.
Without $condition, returns true if the user interaction matched and event telling the current job has to be skipped while the user check is a 'before' type check.
For 'after' type check, it has only the meaning to not process any following 'after' user check in a list context, until only one 'after' check is really expected, this call could be avoided in that case.
If $condition is given, set _stopped private value accordingly: - 0 or 'no' : has the same effect than calling $OBJ->continue() - 1 or 'yes': defines the _stopped private value to be true. - any text: log the text as error and set _stopped private value to be true.
To install FusionInventory::Agent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FusionInventory::Agent
CPAN shell
perl -MCPAN -e shell install FusionInventory::Agent
For more information on module installation, please visit the detailed CPAN module installation guide.