Add option -e to set environment

This commit is contained in:
Dzmitry Plashchynski
2015-03-04 14:25:17 +02:00
parent 0afdab02ac
commit e96d71552e
5 changed files with 15 additions and 1 deletions
+2
View File
@@ -8,12 +8,14 @@ module Crono
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