Class: LetsencryptWebfaction::Application::Run::DefaultConfigPath
- Inherits:
-
Object
- Object
- LetsencryptWebfaction::Application::Run::DefaultConfigPath
- Defined in:
- lib/letsencrypt_webfaction/application/run.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize ⇒ DefaultConfigPath
constructor
A new instance of DefaultConfigPath.
- #validate! ⇒ Object
Constructor Details
#initialize ⇒ DefaultConfigPath
Returns a new instance of DefaultConfigPath.
45 46 47 |
# File 'lib/letsencrypt_webfaction/application/run.rb', line 45 def initialize @path = Options. end |
Instance Attribute Details
#path ⇒ Object (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
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 |