Class: LetsencryptHeroku::ConfigBuilder
- Inherits:
-
Object
- Object
- LetsencryptHeroku::ConfigBuilder
- Includes:
- Tools
- Defined in:
- lib/letsencrypt_heroku/config_builder.rb
Instance Method Summary collapse
-
#perform(path = 'config/letsencrypt_heroku.yml') ⇒ Object
Create a letsencrypt_heroku config file under the given path.
Methods included from Tools
#banner, #error, #execute, #log, #output
Instance Method Details
#perform(path = 'config/letsencrypt_heroku.yml') ⇒ Object
Create a letsencrypt_heroku config file under the given path.
6 7 8 9 10 11 12 13 |
# File 'lib/letsencrypt_heroku/config_builder.rb', line 6 def perform(path = 'config/letsencrypt_heroku.yml') 'Generate:', "#{Dir.pwd}/#{path}" output("write file") do error('already exists') if File.exists?(path) end end |