Class: LetsencryptPlugin::HerokuOutput
- Inherits:
-
CertificateOutput
- Object
- CertificateOutput
- LetsencryptPlugin::HerokuOutput
- Defined in:
- lib/letsencrypt_plugin/heroku_output.rb
Instance Method Summary collapse
- #display_info ⇒ Object
-
#initialize(domain, cert) ⇒ HerokuOutput
constructor
A new instance of HerokuOutput.
- #output_cert(cert_type, cert_content) ⇒ Object
Methods inherited from CertificateOutput
Constructor Details
#initialize(domain, cert) ⇒ HerokuOutput
Returns a new instance of HerokuOutput.
5 6 7 |
# File 'lib/letsencrypt_plugin/heroku_output.rb', line 5 def initialize(domain, cert) super(domain, cert) end |
Instance Method Details
#display_info ⇒ Object
14 15 16 17 |
# File 'lib/letsencrypt_plugin/heroku_output.rb', line 14 def display_info Rails.logger.info('You are running this script on Heroku, please copy-paste certificates to your local machine') Rails.logger.info('and then follow https://devcenter.heroku.com/articles/ssl-endpoint guide:') end |
#output_cert(cert_type, cert_content) ⇒ Object
9 10 11 12 |
# File 'lib/letsencrypt_plugin/heroku_output.rb', line 9 def output_cert(cert_type, cert_content) Rails.logger.info("====== #{@domain}-#{cert_type} ======") puts cert_content end |