Sha256: e949662520b93e2e35cc47c09bddce883353bab28eae010e1fc3b2d7be7b1dbf

Contents?: true

Size: 976 Bytes

Versions: 121

Compression:

Stored size: 976 Bytes

Contents

# frozen_string_literal: true

require 'eac_cli/core_ext'

module Avm
  module EacWebappBase0
    module Instances
      module Runners
        class ApacheHost
          runner_with :help do
            desc 'Configure Apache virtual host for instance.'
            bool_opt '-c', '--certbot', 'Install certbot.'
          end

          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

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

          def stereotype_apache_host_options
            { certbot: parsed.certbot? }
          end
        end
      end
    end
  end
end

Version data entries

121 entries across 121 versions & 2 rubygems

Version Path
eac_tools-0.57.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/apache_host.rb
eac_tools-0.56.1 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/apache_host.rb
avm-eac_webapp_base0-0.14.0 lib/avm/eac_webapp_base0/instances/runners/apache_host.rb
eac_tools-0.56.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/apache_host.rb
eac_tools-0.55.7 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/apache_host.rb
eac_tools-0.55.6 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/apache_host.rb
eac_tools-0.55.5 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/apache_host.rb
eac_tools-0.55.4 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/apache_host.rb
eac_tools-0.55.3 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/apache_host.rb
eac_tools-0.55.2 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/apache_host.rb
eac_tools-0.55.1 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/apache_host.rb
eac_tools-0.55.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/apache_host.rb
eac_tools-0.54.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/apache_host.rb
eac_tools-0.53.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/apache_host.rb
avm-eac_webapp_base0-0.13.1 lib/avm/eac_webapp_base0/instances/runners/apache_host.rb
eac_tools-0.52.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/apache_host.rb
eac_tools-0.51.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/apache_host.rb
eac_tools-0.50.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/apache_host.rb
eac_tools-0.49.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/apache_host.rb
eac_tools-0.48.1 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/runners/apache_host.rb