class Mallory::SSL::CertificateManager
Public Class Methods
new(storage, factory)
click to toggle source
# File lib/mallory/ssl/certificate_manager.rb, line 5 def initialize storage, factory @storage = storage @factory = factory end
Public Instance Methods
get(domain)
click to toggle source
# File lib/mallory/ssl/certificate_manager.rb, line 10 def get domain key = @storage.get(domain) if not key.nil? return key end key = @factory.get(domain) @storage.put(key) return key end