class Mqjob::Config::Hooks
Attributes
after_fork[R]
before_fork[R]
wrap_perform[R]
Public Class Methods
new(opts)
click to toggle source
# File lib/mqjob.rb, line 98 def initialize(opts) update(opts) end
Public Instance Methods
update(opts)
click to toggle source
# File lib/mqjob.rb, line 102 def update(opts) return if opts.nil? || opts.empty? raise "hooks shuld be a Proc map!" unless opts.values.all?{|x| x.nil? || x.is_a?(Proc)} @before_fork = opts[:before_fork] @after_fork = opts[:after_fork] @wrap_perform = opts[:wrap_perform] end