Class: Resque::Scheduler::Env

Inherits:
Object
  • Object
show all
Defined in:
lib/resque/scheduler/env.rb

Instance Method Summary collapse

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)
  @options = options
  @pidfile_path = nil
end

Instance Method Details

#cleanupObject


22
23
24
# File 'lib/resque/scheduler/env.rb', line 22

def cleanup
  cleanup_pid_file
end

#setupObject


13
14
15
16
17
18
19
20
# File 'lib/resque/scheduler/env.rb', line 13

def setup
  require 'resque'
  require 'resque/scheduler'

  setup_backgrounding
  setup_pid_file
  setup_scheduler_configuration
end