21
1
Fork 0
mirror of https://github.com/Evolix/chexpire.git synced 2024-05-21 01:48:39 +02:00
chexpire/lib/tasks/checks.rake

25 lines
717 B
Ruby
Raw Normal View History

# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
# License: GNU AGPL-3+ (see full text in LICENSE file)
namespace :checks do
namespace :sync_dates do
2018-07-02 17:21:08 +02:00
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
2018-07-02 17:21:08 +02:00
desc "Refresh SSL expiry dates"
2018-07-06 12:57:07 +02:00
task ssl: :environment do
configuration = Rails.configuration.chexpire.fetch("checks_ssl")
process = CheckSSLProcessor.new(configuration: configuration)
2018-07-02 17:21:08 +02:00
process.sync_dates
end
end
end