Class: LetsencryptHeroku::CLI
- Inherits:
-
Object
- Object
- LetsencryptHeroku::CLI
- Defined in:
- lib/letsencrypt_heroku.rb
Constant Summary collapse
- CONFIG_FILE =
'config/letsencrypt_heroku.yml'
Class Method Summary collapse
-
.run ⇒ Object
limit to domain, skip other configs.
Class Method Details
.run ⇒ Object
limit to domain, skip other configs
26 27 28 29 30 31 32 33 |
# File 'lib/letsencrypt_heroku.rb', line 26 def self.run if File.exist?(CONFIG_FILE) configs = Array(YAML.load(File.read(CONFIG_FILE))).map { |c| OpenStruct.new(c) } configs.each { |config| Process.new(config).perform } else puts Rainbow("Missing config: #{CONFIG_FILE}").red end end |