Sha256: 11df200dcbc61cb0b7514f96138bf2df4a4cb3a7a859860e976cce5d6fbab7f1

Contents?: true

Size: 957 Bytes

Versions: 7

Compression:

Stored size: 957 Bytes

Contents

# frozen_string_literal: true

require 'eac_cli/core_ext'
require 'avm/eac_webapp_base0/runner/apache_host'
require 'eac_ruby_utils/console/docopt_runner'
require 'avm/eac_rails_base0/apache_path'

module Avm
  module Tools
    class Runner < ::EacRubyUtils::Console::DocoptRunner
      class EacRailsBase0 < ::EacRubyUtils::Console::DocoptRunner
        class ApachePath < ::EacRubyUtils::Console::DocoptRunner
          runner_with

          runner_definition 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

          def apache_path_uncached
            ::Avm::EacRailsBase0::ApachePath.new(context(:instance))
          end

          def result_uncached
            apache_path.run
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
avm-tools-0.74.0 lib/avm/tools/runner/eac_rails_base0/apache_path.rb
avm-tools-0.73.0 lib/avm/tools/runner/eac_rails_base0/apache_path.rb
avm-tools-0.72.0 lib/avm/tools/runner/eac_rails_base0/apache_path.rb
avm-tools-0.71.0 lib/avm/tools/runner/eac_rails_base0/apache_path.rb
avm-tools-0.70.2 lib/avm/tools/runner/eac_rails_base0/apache_path.rb
avm-tools-0.70.1 lib/avm/tools/runner/eac_rails_base0/apache_path.rb
avm-tools-0.70.0 lib/avm/tools/runner/eac_rails_base0/apache_path.rb