Class: CertWatch::InstallCertificateJob
- Inherits:
-
Object
- Object
- CertWatch::InstallCertificateJob
- Extended by:
- StateMachineJob
- Defined in:
- app/jobs/cert_watch/install_certificate_job.rb
Class Method Summary collapse
Class Method Details
.perform_with_result(certificate, _options = {}) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'app/jobs/cert_watch/install_certificate_job.rb', line 7 def self.perform_with_result(certificate, = {}) CertWatch.installer.install(certificate.domain) certificate.last_installed_at = Time.now :ok rescue InstallError certificate.last_install_failed_at = Time.now :error end |