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
eac_tools-0.27.2 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-eac_webapp_base0-0.6.1 lib/avm/eac_webapp_base0/runner/apache_path.rb
eac_tools-0.27.1 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-eac_webapp_base0-0.6.0 lib/avm/eac_webapp_base0/runner/apache_path.rb
eac_tools-0.27.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
eac_tools-0.26.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-eac_webapp_base0-0.5.0 lib/avm/eac_webapp_base0/runner/apache_path.rb
eac_tools-0.25.1 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-eac_webapp_base0-0.4.1 lib/avm/eac_webapp_base0/runner/apache_path.rb
eac_tools-0.25.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
eac_tools-0.24.1 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
eac_tools-0.24.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
avm-eac_webapp_base0-0.4.0 lib/avm/eac_webapp_base0/runner/apache_path.rb
eac_tools-0.23.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
eac_tools-0.22.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
eac_tools-0.21.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
eac_tools-0.20.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
eac_tools-0.19.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
eac_tools-0.18.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb
eac_tools-0.17.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/runner/apache_path.rb