Sha256: fa15856b68df8dd68f06f14f269b14c34049155619b1eb9406783b6cadffad21

Contents?: true

Size: 936 Bytes

Versions: 76

Compression:

Stored size: 936 Bytes

Contents

# frozen_string_literal: true

require 'eac_cli/core_ext'
require 'avm/instances/runner'
require 'avm/eac_webapp_base0/runner/apache_host'
require 'avm/eac_rails_base0/apache_path'

module Avm
  module EacWebappBase0
    class Runner < ::Avm::Instances::Runner
      class ApachePath
        runner_with :help do
          desc 'Configure Apache path configuration for instance.'
        end

        def run
          if result.error?
            fatal_error result.to_s
          else
            infov 'Result', result.label
          end
        end

        private

        def apache_path_uncached
          stereotype_apache_path_class.new(runner_context.call(:instance))
        end

        def result_uncached
          apache_path.run
        end

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

Version data entries

76 entries across 76 versions & 3 rubygems

Version Path
avm-tools-0.114.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-tools-0.113.6 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-tools-0.113.5 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-tools-0.113.4 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-eac_webapp_base0-0.2.1 lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-tools-0.113.3 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-tools-0.113.2 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-eac_webapp_base0-0.2.0 lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-tools-0.110.0 vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-tools-0.109.1 vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-tools-0.109.0 vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-tools-0.108.0 vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-tools-0.107.0 vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-tools-0.106.0 vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-eac_webapp_base0-0.1.1 lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-tools-0.105.0 vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-tools-0.104.0 vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-tools-0.103.1 vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-eac_webapp_base0-0.1.0 lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-tools-0.103.0 vendor/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb