Class: LetsencryptHeroku::Process

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#contextObject

Returns the value of attribute context.



3
4
5
# File 'lib/letsencrypt_heroku/process.rb', line 3

def context
  @context
end

Instance Method Details

#performObject



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