mirror of
https://github.com/plashchynski/crono.git
synced 2026-05-13 03:10:42 +02:00
19 lines
490 B
Ruby
19 lines
490 B
Ruby
module Crono
|
|
# Crono::Config stores Crono configuration
|
|
class Config
|
|
CRONOTAB = 'config/cronotab.rb'
|
|
LOGFILE = 'log/crono.log'
|
|
PIDFILE = 'tmp/pids/crono.pid'
|
|
|
|
attr_accessor :cronotab, :logfile, :pidfile, :daemonize, :environment
|
|
|
|
def initialize
|
|
self.cronotab = CRONOTAB
|
|
self.logfile = LOGFILE
|
|
self.pidfile = PIDFILE
|
|
self.daemonize = false
|
|
self.environment = ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development'
|
|
end
|
|
end
|
|
end
|