module CertWatch
Constants
- VERSION
Public Class Methods
active_admin_load_path()
click to toggle source
# File lib/cert_watch.rb, line 25 def self.active_admin_load_path Dir[CertWatch::Engine.root.join('admin')].first end
config()
click to toggle source
# File lib/cert_watch.rb, line 4 def self.config fail('Call CertWatch.setup before accessing CertWatch.config') unless @config @config end
domain_owner(options)
click to toggle source
# File lib/cert_watch.rb, line 29 def self.domain_owner(options) DomainOwner.define(options) end
setup() { |config| ... }
click to toggle source
# File lib/cert_watch.rb, line 9 def self.setup @config = Configuration.new yield @config if block_given? self.client = CertbotClient.new(executable: config.certbot_executable, port: config.certbot_port) self.installer = PemDirectoryInstaller.new(pem_directory: config.pem_directory, input_directory: config.certbot_output_directory, reload_command: config.server_reload_command) end