Method: AcmeManager::Configuration#host

Defined in:
lib/acme_manager/configuration.rb

#hostString

Returns The hostname where acme-manager is running. Set via accessor or by reading environment variable ACME_MANAGER_HOST.

Returns:

  • (String)

    The hostname where acme-manager is running. Set via accessor or by reading environment variable ACME_MANAGER_HOST

Raises:



10
11
12
13
# 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