class Resqued::Config::BeforeFork

A config handler that executes the ‘before_fork` block.

before_fork do
  # Runs once, before forking all the workers.
end

Public Class Methods

new(options = {}) click to toggle source
# File lib/resqued/config/before_fork.rb, line 11
def initialize(options = {})
  @resqued = options.fetch(:resqued)
end

Public Instance Methods

before_fork() { |resqued| ... } click to toggle source

DSL: Execute the ‘before_fork` block.

# File lib/resqued/config/before_fork.rb, line 16
def before_fork
  yield @resqued
end