Class: LetsEncrypt::Redis
- Inherits:
-
Object
- Object
- LetsEncrypt::Redis
- Defined in:
- lib/letsencrypt/redis.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.connection ⇒ Object
7 8 9 |
# File 'lib/letsencrypt/redis.rb', line 7 def connection @connection ||= ::Redis.new(url: LetsEncrypt.config.redis_url) end |
.save(cert) ⇒ Object
11 12 13 14 15 |
# File 'lib/letsencrypt/redis.rb', line 11 def save(cert) LetsEncrypt.logger.info "Save #{cert.domain}'s certificate to redis" connection.set "#{cert.domain}.key", cert.key connection.set "#{cert.domain}.crt", cert.certificate end |