Class: TuneMyGc::Spies::DelayedJob
- Inherits:
-
Base
- Object
- Base
- TuneMyGc::Spies::DelayedJob
show all
- Defined in:
- lib/tunemygc/spies/delayed_job.rb
Instance Method Summary
collapse
Methods inherited from Base
#check_uninstall, #initialize
Instance Method Details
#install ⇒ Object
22
23
24
25
|
# File 'lib/tunemygc/spies/delayed_job.rb', line 22
def install
Delayed::Worker.plugins << Delayed::Plugins::TuneMyGcPlugin
TuneMyGc.log "hooked: delayed_job"
end
|
#uninstall ⇒ Object
27
28
29
30
|
# File 'lib/tunemygc/spies/delayed_job.rb', line 27
def uninstall
Delayed::Worker.plugins.delete(Delayed::Plugins::TuneMyGcPlugin)
TuneMyGc.log "uninstalled delayed_job spy"
end
|