From cdd8ff258582f5eba7e3941a5a18007e7aabbbfa Mon Sep 17 00:00:00 2001 From: Daniel Beauchamp Date: Thu, 2 Aug 2012 13:38:19 -0400 Subject: Better generators, sample widgets, and more! --- templates/job/%name%.rb | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 templates/job/%name%.rb (limited to 'templates/job/%name%.rb') diff --git a/templates/job/%name%.rb b/templates/job/%name%.rb new file mode 100644 index 0000000..76f221a --- /dev/null +++ b/templates/job/%name%.rb @@ -0,0 +1,4 @@ +# :first_in sets how long it takes before the job is first run. In this case, it is run immediately +SCHEDULER.every '1m', :first_in => 0 do |job| + send_event('widget_id', { }) +end \ No newline at end of file -- cgit v1.2.3