21
1
Fork 0
mirror of https://github.com/Evolix/chexpire.git synced 2024-05-01 08:20:49 +02:00
chexpire/app/services/check_domain_processor.rb
2018-08-02 00:29:53 +02:00

30 lines
523 B
Ruby

# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
# License: GNU AGPL-3+ (see full text in LICENSE file)
class CheckDomainProcessor
include CheckProcessor
protected
def configuration_key
"checks_domain"
end
def resolvers
%i[
resolve_last_run_failed
resolve_expire_short_term
resolve_expire_long_term
resolve_unknown_expiry
]
end
def scope
base_scope.domain
end
def process(check)
WhoisSyncJob.perform_now(check.id)
end
end