Class: LetsencryptHeroku::Process
- Inherits:
-
Object
- Object
- LetsencryptHeroku::Process
- Defined in:
- lib/letsencrypt_heroku/process.rb,
lib/letsencrypt_heroku/process/setup_client.rb,
lib/letsencrypt_heroku/process/prepare_config.rb,
lib/letsencrypt_heroku/process/authorize_domains.rb,
lib/letsencrypt_heroku/process/update_certificates.rb
Defined Under Namespace
Classes: AuthorizeDomains, PrepareConfig, SetupClient, UpdateCertificates
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
Instance Method Summary collapse
-
#initialize(config) ⇒ Process
constructor
A new instance of Process.
- #perform ⇒ Object
Constructor Details
#initialize(config) ⇒ Process
Returns a new instance of Process.
5 6 7 |
# File 'lib/letsencrypt_heroku/process.rb', line 5 def initialize(config) @context = OpenStruct.new(config: config) end |
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context.
3 4 5 |
# File 'lib/letsencrypt_heroku/process.rb', line 3 def context @context end |
Instance Method Details
#perform ⇒ Object
9 10 11 12 13 |
# File 'lib/letsencrypt_heroku/process.rb', line 9 def perform [PrepareConfig, SetupClient, AuthorizeDomains, UpdateCertificates].each do |klass| klass.new.perform(context) end end |