]> git.evergreen-ils.org Git - Evergreen.git/commit
Make some improvements to Cronscript.pm.
authorJason Stephenson <jstephenson@mvlc.org>
Thu, 1 Dec 2011 17:38:55 +0000 (12:38 -0500)
committerBill Erickson <berick@esilibrary.com>
Fri, 16 Dec 2011 18:46:06 +0000 (13:46 -0500)
commit2727b04df37e4903fa14c4b8368e87b55dc9ba69
tree4fd15941ca74d073d5238efe28fb6dd2cf9aeb60
parent5f1742e1556d3631fe797ee79137b706d8e1e9ee
Make some improvements to Cronscript.pm.

Allow the session method to function when called more than once with
different service names.

Add some useful new methods:

logout: Calls open-ils.auth.session.delete if we're logged in.

die_event: Causes a script to croak if the object passed in is an event,
or optionally a certain named event.

warn_event: Causes a script to output an error message if the object passed
in is an event, or optionally a certain named event.

Use OpenILS::Application::AppUtils.

Default to staff login in Cronscript->authenticate method.

Improve the Croncript.pm.in POD to include a better synopsis of its features.

Clean up some other sections of the POD, remove the TODO section, and add
some SEE ALSO entries.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Utils/Cronscript.pm.in