Class: ResqueAdmin::Scheduler::Env
- Inherits:
-
Object
- Object
- ResqueAdmin::Scheduler::Env
- Defined in:
- lib/resque/scheduler/env.rb,
lib/resque/scheduler_admin/env.rb,
lib/resque_admin/scheduler/env.rb
Instance Method Summary collapse
- #cleanup ⇒ Object
-
#initialize(options) ⇒ Env
constructor
A new instance of Env.
- #setup ⇒ Object
Constructor Details
#initialize(options) ⇒ Env
Returns a new instance of Env.
8 9 10 11 |
# File 'lib/resque/scheduler/env.rb', line 8 def initialize() @options = @pidfile_path = nil end |
Instance Method Details
#cleanup ⇒ Object
22 23 24 |
# File 'lib/resque/scheduler/env.rb', line 22 def cleanup cleanup_pid_file end |
#setup ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/resque/scheduler/env.rb', line 13 def setup require 'resque_admin' require 'resque_admin/scheduler' setup_backgrounding setup_pid_file setup_scheduler_configuration end |