Class: LetsencryptStandalone::Base
- Inherits:
-
Object
- Object
- LetsencryptStandalone::Base
show all
- Defined in:
- lib/letsencrypt_standalone/base.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.logger(log_destination: STDOUT) ⇒ Object
7
8
9
10
11
|
# File 'lib/letsencrypt_standalone/base.rb', line 7
def logger(log_destination: STDOUT)
@@logger = Logger.new(log_destination)
@@logger.level = Logger::INFO
@@logger
end
|
Instance Method Details
#endpoint_url ⇒ Object
18
19
20
|
# File 'lib/letsencrypt_standalone/base.rb', line 18
def endpoint_url
ENV['LE_ENVIRONMENT'] == 'staging' ? STAGE_URL : PROD_URL
end
|
#logger ⇒ Object
14
15
16
|
# File 'lib/letsencrypt_standalone/base.rb', line 14
def logger
@@logger
end
|
#output_dir ⇒ Object
22
23
24
|
# File 'lib/letsencrypt_standalone/base.rb', line 22
def output_dir
File.join(path, ssl_subdir)
end
|