Class: LetsencryptWebfaction::Application

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

Instance Method Summary collapse

Constructor Details

#initializeApplication



11
12
13
# File 'lib/letsencrypt_webfaction/application.rb', line 11

def initialize
  @options = LetsencryptWebfaction::ArgsParser.new(ARGV)
end

Instance Method Details

#run!Object



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/letsencrypt_webfaction/application.rb', line 15

def run!
  # Validate that the correct options were passed.
  validate_options!

  # Register the private key.
  register_key!

  # Validate the domains.
  validator.validate!

  # Write the obtained certificates.
  certificate_writer.write!

  # Dump help text.
  puts instructions.message
end