Class: Crono::Config
- Inherits:
-
Object
- Object
- Crono::Config
- Defined in:
- lib/crono/config.rb
Overview
Crono::Config stores Crono configuration
Constant Summary collapse
- CRONOTAB =
'config/cronotab.rb'- LOGFILE =
'log/crono.log'- PIDFILE =
'tmp/pids/crono.pid'- PIDDIR =
'tmp/pids'- PROCESS_NAME =
'crono'
Instance Attribute Summary collapse
-
#cronotab ⇒ Object
Returns the value of attribute cronotab.
-
#daemonize ⇒ Object
Returns the value of attribute daemonize.
-
#deprecated_daemonize ⇒ Object
Returns the value of attribute deprecated_daemonize.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#logfile ⇒ Object
Returns the value of attribute logfile.
-
#monitor ⇒ Object
Returns the value of attribute monitor.
-
#piddir ⇒ Object
Returns the value of attribute piddir.
-
#pidfile ⇒ Object
Returns the value of attribute pidfile.
-
#process_name ⇒ Object
Returns the value of attribute process_name.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/crono/config.rb', line 13 def initialize self.cronotab = CRONOTAB self.logfile = LOGFILE self.piddir = PIDDIR self.process_name = PROCESS_NAME self.daemonize = false self.deprecated_daemonize = false self.monitor = false self.environment = ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development' end |
Instance Attribute Details
#cronotab ⇒ Object
Returns the value of attribute cronotab.
10 11 12 |
# File 'lib/crono/config.rb', line 10 def cronotab @cronotab end |
#daemonize ⇒ Object
Returns the value of attribute daemonize.
10 11 12 |
# File 'lib/crono/config.rb', line 10 def daemonize @daemonize end |
#deprecated_daemonize ⇒ Object
Returns the value of attribute deprecated_daemonize.
10 11 12 |
# File 'lib/crono/config.rb', line 10 def deprecated_daemonize @deprecated_daemonize end |
#environment ⇒ Object
Returns the value of attribute environment.
10 11 12 |
# File 'lib/crono/config.rb', line 10 def environment @environment end |
#logfile ⇒ Object
Returns the value of attribute logfile.
10 11 12 |
# File 'lib/crono/config.rb', line 10 def logfile @logfile end |
#monitor ⇒ Object
Returns the value of attribute monitor.
10 11 12 |
# File 'lib/crono/config.rb', line 10 def monitor @monitor end |
#piddir ⇒ Object
Returns the value of attribute piddir.
10 11 12 |
# File 'lib/crono/config.rb', line 10 def piddir @piddir end |
#pidfile ⇒ Object
Returns the value of attribute pidfile.
10 11 12 |
# File 'lib/crono/config.rb', line 10 def pidfile @pidfile end |
#process_name ⇒ Object
Returns the value of attribute process_name.
10 11 12 |
# File 'lib/crono/config.rb', line 10 def process_name @process_name end |