Sha256: 2190f42aa84c759e7d564419819ae6fb4242fc84fec58e469f8ffee79af19425
Contents?: true
Size: 611 Bytes
Versions: 6
Compression:
Stored size: 611 Bytes
Contents
# encoding: UTF-8 #require 'whenever' class Boxafe::Scheduler::Cron < Boxafe::Scheduler def start raise 'Not yet implemented on this operating system' Whenever::CommandLine.execute block: mount_schedule, write: true, identifier: 'boxafe-mount' end def stop raise 'Not yet implemented on this operating system' Whenever::CommandLine.execute block: mount_schedule, clear: true, identifier: 'boxafe-mount' end private def self.mount_schedule Proc.new do every 1.minute do command 'echo $(date) > /Users/unknow/Projects/boxafe/bar.txt' end end end end
Version data entries
6 entries across 6 versions & 1 rubygems