Class: LetsencryptWebfaction::Application::Run
- Inherits:
-
Object
- Object
- LetsencryptWebfaction::Application::Run
- Defined in:
- lib/letsencrypt_webfaction/application/run.rb
Defined Under Namespace
Classes: CustomConfigPath, DefaultConfigPath
Constant Summary collapse
- RENEWAL_DELTA =
days
30
Instance Method Summary collapse
-
#initialize(args) ⇒ Run
constructor
A new instance of Run.
- #run! ⇒ Object
Constructor Details
#initialize(args) ⇒ Run
Returns a new instance of Run.
18 19 20 21 22 23 24 |
# File 'lib/letsencrypt_webfaction/application/run.rb', line 18 def initialize(args) @config_path = DefaultConfigPath.new (args) @config_path.validate! @options = LetsencryptWebfaction::Options.from_toml(@config_path.path) end |
Instance Method Details
#run! ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/letsencrypt_webfaction/application/run.rb', line 26 def run! # Check credentials unless api_credentials.valid? $stderr.puts 'WebFaction API username, password, and/or servername are incorrect. Login failed.' raise AppExitError, 'WebFaction credentials failed' end register_key process_certs end |