Make some improvements to Cronscript.pm.
authorJason Stephenson <jstephenson@mvlc.org>
Thu, 1 Dec 2011 17:38:55 +0000 (12:38 -0500)
committerJason Stephenson <jstephenson@mvlc.org>
Thu, 1 Dec 2011 17:38:55 +0000 (12:38 -0500)
commit2f352a19d432fbb07edad899de17e025e2ec9fd7
tree6958857888f7abf9ab5f58834fa0c12a3b8d1bf2
parent7ab686868965f22323a330f119be950c0db7bd76
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>
Open-ILS/src/perlmods/lib/OpenILS/Utils/Cronscript.pm.in