0.0
Low commit activity in last 3 years
No release in over a year
Publishes SimplePubSub messages by reading cron entries from a Dynarex document
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.7, >= 0.7.1
~> 1.9, >= 1.9.6
~> 0.5, >= 0.5.5
 Project Readme

Introducing the Dynarex Cron gem

require 'dynarex_cron'

crontab =<<CRON
<?dynarex schema="entries[title]/entry(expression, job, description)" format_mask="[!expression][.,] [!job] # [!description]"?>
title: A Sample Dynarex Cron file

at 10:54pm every day, pub aida: set light off
every 2 minutes. publish magic: testing 123 simplepubsub
9:00-18:00 every day, pub fortina: pips # play the hourly pips
CRON

dc = DynarexCron.new(Dynarex.parse crontab)
dc.start

The above example runs a scheduler which checks for jobs to run every minute.

Resources

dynarexcron gem crontab cron