Module: MultiScheduler
- Defined in:
- lib/multi_scheduler/schedule/whenever.rb,
lib/multi_scheduler.rb,
lib/multi_scheduler/schedule.rb,
lib/multi_scheduler/schedule/launchd.rb
Overview
require ‘whenever’
Defined Under Namespace
Classes: Launchd, Schedule, Whenever
Constant Summary collapse
- VERSION =
'0.1.2'
Class Method Summary collapse
Class Method Details
.schedule(id, options = {}) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/multi_scheduler.rb', line 6 def self.schedule id, = {} host_os = RbConfig::CONFIG['host_os'] case host_os when /darwin/i Launchd.new id, when /linux/i Whenever.new id, else raise "Unsupported host operating system '#{host_os}'" end end |