class MultiScheduler::Whenever
Private Class Methods
mount_schedule()
click to toggle source
# File lib/multi_scheduler/schedule/whenever.rb, line 19 def self.mount_schedule Proc.new do every 1.minute do command 'echo $(date) > /tmp/bar.txt' end end end
Public Instance Methods
start()
click to toggle source
# File lib/multi_scheduler/schedule/whenever.rb, line 7 def start raise 'Not yet implemented on this operating system' ::Whenever::CommandLine.execute block: mount_schedule, write: true, identifier: @identifier end
stop()
click to toggle source
# File lib/multi_scheduler/schedule/whenever.rb, line 12 def stop raise 'Not yet implemented on this operating system' ::Whenever::CommandLine.execute block: mount_schedule, clear: true, identifier: @identifier end