lib/crono/config.rb in crono-0.5.0 vs lib/crono/config.rb in crono-0.5.1
- old
+ new
@@ -6,14 +6,16 @@
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