Class: Avm::EacWebappBase0::Runner::ApacheHost

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/eac_webapp_base0/runner/apache_host.rb

Instance Method Summary collapse

Instance Method Details

#runObject



15
16
17
18
19
20
21
22
23
# File 'lib/avm/eac_webapp_base0/runner/apache_host.rb', line 15

def run
  result = stereotype_apache_host_class.new(runner_context.call(:instance),
                                            stereotype_apache_host_options).run
  if result.error?
    fatal_error result.to_s
  else
    infov 'Result', result.label
  end
end

#stereotype_apache_host_classObject



25
26
27
# File 'lib/avm/eac_webapp_base0/runner/apache_host.rb', line 25

def stereotype_apache_host_class
  "#{runner_context.call(:instance).class.name.deconstantize}::ApacheHost".constantize
end

#stereotype_apache_host_optionsObject



29
30
31
# File 'lib/avm/eac_webapp_base0/runner/apache_host.rb', line 29

def stereotype_apache_host_options
  { certbot: parsed.certbot? }
end