Class: LetsencryptWebfaction::Application::Run::DefaultConfigPath

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

Direct Known Subclasses

CustomConfigPath

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDefaultConfigPath

Returns a new instance of DefaultConfigPath.



45
46
47
# File 'lib/letsencrypt_webfaction/application/run.rb', line 45

def initialize
  @path = Options.default_options_path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



43
44
45
# File 'lib/letsencrypt_webfaction/application/run.rb', line 43

def path
  @path
end

Instance Method Details

#validate!Object

Raises:



49
50
51
52
53
54
# File 'lib/letsencrypt_webfaction/application/run.rb', line 49

def validate!
  return true if @path.exist?

  print_error
  raise AppExitError, 'config missing'
end