Class: Boxafe::Scheduler::Cron

Inherits:
Boxafe::Scheduler show all
Defined in:
lib/boxafe/scheduler/cron.rb

Overview

require ‘whenever’

Instance Method Summary collapse

Methods inherited from Boxafe::Scheduler

#initialize, platform_scheduler

Constructor Details

This class inherits a constructor from Boxafe::Scheduler

Instance Method Details

#startObject



6
7
8
9
# File 'lib/boxafe/scheduler/cron.rb', line 6

def start
  raise 'Not yet implemented on this operating system'
  Whenever::CommandLine.execute block: mount_schedule, write: true, identifier: 'boxafe-mount'
end

#stopObject



11
12
13
14
# File 'lib/boxafe/scheduler/cron.rb', line 11

def stop
  raise 'Not yet implemented on this operating system'
  Whenever::CommandLine.execute block: mount_schedule, clear: true, identifier: 'boxafe-mount'
end