File: clockwork

package info (click to toggle)
ruby-clockwork 3.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 348 kB
  • sloc: ruby: 1,638; makefile: 4
file content (14 lines) | stat: -rwxr-xr-x 225 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env ruby

STDERR.sync = STDOUT.sync = true

require 'clockwork'

usage = 'Usage: clockwork <clock.rb>'
file = ARGV.shift or abort usage

file = "./#{file}" unless file.match(/^[\/.]/)

require file

Clockwork::run