Class: LetsencryptHeroku::ConfigBuilder

Inherits:
Object
  • Object
show all
Includes:
Tools
Defined in:
lib/letsencrypt_heroku/config_builder.rb

Instance Method Summary collapse

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')
  banner 'Generate:', "#{Dir.pwd}/#{path}"

  output("write file") do
    error('already exists') if File.exists?(path)

  end
end