class LetsencryptWebfaction::Application::Run::DefaultConfigPath
Attributes
path[R]
Public Class Methods
new()
click to toggle source
# File lib/letsencrypt_webfaction/application/run.rb, line 45 def initialize @path = Options.default_options_path end
Public Instance Methods
validate!()
click to toggle source
# File lib/letsencrypt_webfaction/application/run.rb, line 49 def validate! return true if @path.exist? print_error raise AppExitError, 'config missing' end
Private Instance Methods
print_error()
click to toggle source
# File lib/letsencrypt_webfaction/application/run.rb, line 58 def print_error $stderr.puts 'The configuration file is missing.' $stderr.puts 'You may need to run `letsencrypt_webfaction init`' end