module AcmeManager
Constants
- VERSION
Public Class Methods
config()
click to toggle source
@return [Configuration] The current configuration (or new if uninitialized)
# File lib/acme_manager.rb, line 11 def self.config @config ||= Configuration.new end
configure() { |config| ... }
click to toggle source
Pass a block to configure the AcmeManager
client
@yieldparam [Configuration] Current configuration (see config)
@return [Configuration] Configuration
after block has been called
# File lib/acme_manager.rb, line 20 def self.configure yield config config end
issue(name)
click to toggle source
Instruct the acme-manager to issue a new certificate
@param [String] name Domain name to issue a new certificate for
@return [IssueRequest] Object containing result of the issue request
# File lib/acme_manager.rb, line 37 def self.issue(name) IssueRequest.make(name) end
list()
click to toggle source
Get a list of certificates currently managed by the acme-manager
@return [Array<Certificate>] List of certificates
# File lib/acme_manager.rb, line 28 def self.list Certificate.all end
logger()
click to toggle source
# File lib/acme_manager.rb, line 41 def self.logger @logger ||= begin logger = Logger.new(config.log_path) logger.level = config.log_level logger end end
logger=(new_logger)
click to toggle source
Allow a custom logger to be set instead of configuring our own
@param [Logger] new_logger Custom logger to set
# File lib/acme_manager.rb, line 52 def self.logger=(new_logger) @logger = new_logger end