class AcmeManager::Configuration
All global configuration for AcmeManager
client
Attributes
api_key[W]
host[W]
log_level[W]
log_path[W]
Public Instance Methods
api_key()
click to toggle source
@return [String] The API key used to authenticate with acme-manager is running. Set via accessor or by reading
environment variable ACME_MANAGER_API_KEY
@raise [AcmeManager::Error] Raised when unconfigured
# File lib/acme_manager/configuration.rb, line 19 def api_key @api_key || ENV['ACME_MANAGER_API_KEY'] || raise(Error, "`api_key` has not been configured. Set it using the " \ "`AcmeManager.configure` block or use the `ACME_MANAGER_API_KEY` environment variable") end
host()
click to toggle source
@return [String] The hostname where acme-manager is running. Set via accessor or by reading environment variable
ACME_MANAGER_HOST
@raise [AcmeManager::Error] Raised when unconfigured
# File lib/acme_manager/configuration.rb, line 10 def host @host || ENV['ACME_MANAGER_HOST'] || raise(Error, "`host` has not been configured. Set it using the " \ "`AcmeManager.configure` block or use the `ACME_MANAGER_HOST` environment variable") end
log_level()
click to toggle source
@return [Integer] Severity level to write logs at. Logger::WARNING by default.
# File lib/acme_manager/configuration.rb, line 30 def log_level @log_level || Logger::WARNING end
log_path()
click to toggle source
@return [IO] Where log output should be written to. STDOUT by default.
# File lib/acme_manager/configuration.rb, line 25 def log_path @log_path || STDOUT end