Welcome to mirror list, hosted at ThFree Co, Russian Federation.

pages_domain_ssl_renewal_worker.rb « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b32458ca77796487fd0ca0fb41df6bee21fb2eb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class PagesDomainSslRenewalWorker
  include ApplicationWorker

  def perform(domain_id)
    domain = PagesDomain.find_by_id(domain_id)
    return unless domain&.enabled?
    return unless ::Gitlab::LetsEncrypt.enabled?(domain)

    ::PagesDomains::ObtainLetsEncryptCertificateService.new(domain).execute
  end
end