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

Inherits:
EacRubyUtils::Console::DocoptRunner
  • Object
show all
Includes:
EacCli::DefaultRunner
Defined in:
lib/avm/eac_webapp_base0/runner/apache_host.rb

Instance Method Summary collapse

Instance Method Details

#runObject



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

def run
  options
  result = stereotype_apache_host_class.new(context(: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



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

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

#stereotype_apache_host_optionsObject



32
33
34
# File 'lib/avm/eac_webapp_base0/runner/apache_host.rb', line 32

def stereotype_apache_host_options
  { certbot: options.fetch('--certbot') }
end