mirror of
https://github.com/Evolix/chexpire.git
synced 2024-06-27 11:32:52 +02:00
Jérémy Lecour
815471da76
It's better to redure coupling between these classes and Rails. It gives liberty to provide configuration and other parameters depending on the context.
26 lines
472 B
Ruby
26 lines
472 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 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
|