# Copyright (C) 2018 Colin Darie , 2018 Evolix # License: GNU AGPL-3+ (see full text in LICENSE file) namespace :checks do namespace :sync_dates do task all: [:domain, :ssl] desc "Refresh domains expiry dates" task domain: :environment do configuration = Rails.configuration.chexpire.fetch("checks_domain") process = CheckDomainProcessor.new(configuration: configuration) process.sync_dates end desc "Refresh SSL expiry dates" task ssl: :environment do configuration = Rails.configuration.chexpire.fetch("checks_ssl") process = CheckSSLProcessor.new(configuration: configuration) process.sync_dates end end end