The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Yote::Cron

SYNOPSIS

The Yote::Cron, while it works as design, has a poor enough design that I'm yanking it from production.

DESCRIPTION

The Yote::Cron is set up on the yote system and runs every minute, checking if it should run any method that is attached to a yote object. It is a limited version of a cron system, as it for now only registers methods with minutes and hours.

The Yote::Cron's public methods can only be called by an account with the __is_root flag set.

PUBLIC METHODS

add

Takes a hash that has hour, minute, obj, method.

remove

Removes the entry the corresopnds with the input, which is a hash ref containing the fields minute, hour, obj, method

show

Returns a list of all cron entries as strings in the format "min hour obj-id menthodname"

UTIL METHODS

_check

Performs the cron check, running the method given on the object.

AUTHOR

Eric Wolf

LICENSE AND COPYRIGHT

Copyright (C) 2011 Eric Wolf

This module is free software; it can be used under the same terms as perl itself.