Dancer2::Plugin::ProgressStatus::Object
An object that represents a progress status.
$progress++; $progress->add_message('everything is going swimmingly');
Steven Humphrey
You shouldn't need to call this. Any use of increment, decrement, ++, --, add_message, status, count, etc will automatically call save.
Adds a specified amount to the count (defaults to 1)
$prog->increment(10);
Can also add messages at the same time
$prog->increment(10, 'updating count by 10');
Decrement a specified amount from the count (defaults to 1)
$prog->decrement(10);
$prog->decrement(10, 'reducing count by 10');
Adds one or more string messages to the status data.
$prog->add_message('a simple message');
To install Dancer2::Plugin::ProgressStatus, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer2::Plugin::ProgressStatus
CPAN shell
perl -MCPAN -e shell install Dancer2::Plugin::ProgressStatus
For more information on module installation, please visit the detailed CPAN module installation guide.