Sha256: 4b9cc89113403f8196a0df2250fb7dd81e9ff2d3ece94c2aee49df6a6441ed1b
Contents?: true
Size: 606 Bytes
Versions: 2
Compression:
Stored size: 606 Bytes
Contents
#require 'whenever' module MultiScheduler class Whenever < Scheduler def start raise 'Not yet implemented on this operating system' ::Whenever::CommandLine.execute block: mount_schedule, write: true, identifier: @identifier end def stop raise 'Not yet implemented on this operating system' ::Whenever::CommandLine.execute block: mount_schedule, clear: true, identifier: @identifier end private def self.mount_schedule Proc.new do every 1.minute do command 'echo $(date) > /tmp/bar.txt' end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
multi_scheduler-0.1.1 | lib/multi_scheduler/whenever.rb |
multi_scheduler-0.1.0 | lib/multi_scheduler/whenever.rb |