Class: LetsencryptPlugin::HerokuOutput

Inherits:
CertificateOutput show all
Defined in:
lib/letsencrypt_plugin/heroku_output.rb

Instance Method Summary collapse

Methods inherited from CertificateOutput

#output

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_infoObject



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