Sha256: 31fdf506990662d2b1816ddfe05a757eae2dbafa40d3defe5bf1094ec0ca0627

Contents?: true

Size: 513 Bytes

Versions: 4

Compression:

Stored size: 513 Bytes

Contents

module Crono
  class Config
    CRONOTAB  = "config/cronotab.rb"
    LOGFILE   = "log/crono.log"
    PIDFILE   = "tmp/pids/crono.pid"

    attr_accessor :cronotab
    attr_accessor :logfile
    attr_accessor :pidfile
    attr_accessor :daemonize
    attr_accessor :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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
crono-0.7.0 lib/crono/config.rb
crono-0.6.1 lib/crono/config.rb
crono-0.5.2 lib/crono/config.rb
crono-0.5.1 lib/crono/config.rb