Class: AllPluginCheckUpdate
- Inherits:
-
Object
- Object
- AllPluginCheckUpdate
- Includes:
- SuckerPunch::Job
- Defined in:
- app/workers/all_plugin_check_update.rb
Instance Method Summary collapse
Instance Method Details
#later(sec) ⇒ Object
11 12 13 |
# File 'app/workers/all_plugin_check_update.rb', line 11 def later(sec) after(sec) { perform } end |
#perform ⇒ Object
4 5 6 7 8 9 |
# File 'app/workers/all_plugin_check_update.rb', line 4 def perform Plugin.installed.each do |pl| GemUpdateCheck.new.async.perform(pl.gem_name) end later(3600) # will be checked every hour end |