Class: LetsencryptWebfaction::Instructions

Inherits:
Object
  • Object
show all
Defined in:
lib/letsencrypt_webfaction/instructions.rb

Instance Method Summary collapse

Constructor Details

#initialize(output_dir, domains) ⇒ Instructions

Returns a new instance of Instructions.



3
4
5
6
# File 'lib/letsencrypt_webfaction/instructions.rb', line 3

def initialize(output_dir, domains)
  @output_dir = output_dir
  @domains = domains
end

Instance Method Details

#messageObject



8
9
10
11
12
13
14
15
16
17
# File 'lib/letsencrypt_webfaction/instructions.rb', line 8

def message
  'LetsEncrypt Webfaction has generated a new certificate for ' \
  "#{to_sentence @domains}. The certificates have been placed in " \
  "#{@output_dir}. You now need to request installation from the " \
  "WebFaction support team.\n\n" \
  'Go to https://help.webfaction.com, log in, and paste the ' \
  "following text into a new ticket:\n\n" \
  "Please apply the new certificate in #{@output_dir} to " \
  "#{to_sentence @domains}. Thanks!"
end