Check all installed plugins update every hour

This commit is contained in:
uu59 2014-06-09 16:11:33 +09:00
parent 8c02275e96
commit a1b159dd8b
2 changed files with 15 additions and 3 deletions

View File

@ -0,0 +1,14 @@
class AllPluginCheckUpdate
include SuckerPunch::Job
def perform
Plugin.installed.each do |pl|
GemUpdateCheck.new.async.perform(pl.gem_name)
end
later(3600) # will be checked every hour
end
def later(sec)
after(sec) { perform }
end
end

View File

@ -1,3 +1 @@
Plugin.installed.each do |pl|
GemUpdateCheck.new.async.perform(pl.gem_name)
end
AllPluginCheckUpdate.new.async.perform