No commit activity in last 3 years
No release in over 3 years
Checks the execution of a script by checking the file modification date of the output file generated by the script.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.7.22, ~> 1.7
>= 0.5.5, ~> 0.5
 Project Readme

Introducing the execution_checker gem

Usage

require 'execution_checker'

ec = ExecutionChecker.new '/home/james/execution_checker.xml'
ec.check 'dashboard'

The above example opens the Dynarex file execution_checker.xml, then checks the last modified date for a filepath associated with the tag called dashboard. If the last modified date is today's date then an SPS message is published to indicate success.

Here's how I created the Dynarex file for testing the above code:

require 'dynarex'

dx = Dynarex.new("entries[title, tags]/entry(tag, filepath, occurrence, success, failure)")

dx.create tag: 'dashboard', filepath: '/home/james/jamesrobertson.eu/dandelion_s1/yaml/dashboard.yaml'
dx.create tag: 'run', filepath: 'simple something'
dx.save '/home/james/execution_checker.xml'

I of course ensured that the dashboard.yaml file existed and was last modified today.

Resources

gem executionchecker execute checker execution