Sha256: 69bd214e92aee0721d067ca4c7e5bbd464de41d1af600be119a5fcde99d956b4
Contents?: true
Size: 1.08 KB
Versions: 11
Compression:
Stored size: 1.08 KB
Contents
# frozen_string_literal: true require 'eac_cli/default_runner' require 'eac_ruby_utils/core_ext' module Avm module EacWebappBase0 module Runner class ApacheHost < ::EacRubyUtils::Console::DocoptRunner include ::EacCli::DefaultRunner stereotype_name = name.deconstantize.demodulize runner_definition do desc "Configure Apache virtual host for #{stereotype_name} instance." bool_opt '-c', '--certbot', 'Install certbot.' end 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 def stereotype_apache_host_class "#{context(:instance).class.name.deconstantize}::ApacheHost".constantize end def stereotype_apache_host_options { certbot: options.fetch('--certbot') } end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems