Module: RorVsWild::Plugin::Resque

Defined in:
lib/rorvswild/plugin/resque.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.setupObject


4
5
6
7
8
# File 'lib/rorvswild/plugin/resque.rb', line 4

def self.setup
  return if @installed
  ::Resque::Job.send(:extend, Resque) if defined?(::Resque::Job)
  @installed = true
end

Instance Method Details

#around_perform_rorvswild(*args, &block) ⇒ Object


10
11
12
# File 'lib/rorvswild/plugin/resque.rb', line 10

def around_perform_rorvswild(*args, &block)
  RorVsWild.agent.measure_job(to_s, parameters: args, &block)
end