mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 03:25:31 -05:00
15 lines
No EOL
360 B
Ruby
15 lines
No EOL
360 B
Ruby
require_dependency 'discourse_hub'
|
|
require_dependency 'discourse_updates'
|
|
|
|
module Jobs
|
|
class VersionCheck < Jobs::Base
|
|
|
|
def execute(args)
|
|
json = DiscourseHub.discourse_version_check
|
|
DiscourseUpdates.latest_version = json['latestVersion']
|
|
DiscourseUpdates.critical_update_available = json['criticalUpdates']
|
|
true
|
|
end
|
|
|
|
end
|
|
end |