Sha256: 1bc22ab7ce577699ffd620a1c828c9d496677b904d929953f24f99aac445e301

Contents?: true

Size: 978 Bytes

Versions: 8

Compression:

Stored size: 978 Bytes

Contents

# frozen_string_literal: true

require 'avm/instances/base'
require 'avm/eac_postgresql_base0/instance_with'
require 'avm/instances/data/files_unit'
require 'avm/instances/data/package'
require 'avm/eac_webapp_base0/instances/runners'
require 'avm/eac_ubuntu_base0/instances/base'

module Avm
  module EacWebappBase0
    module Instances
      class Base < ::Avm::Instances::Base
        require_sub __FILE__
        include ::Avm::EacPostgresqlBase0::InstanceWith
        enable_simple_cache

        def run_subcommand(subcommand_class, argv)
          subcommand_class.create(
            argv: argv,
            parent: ::Avm::Instances::Base::SubcommandParent.new(self)
          ).run
        end

        def database_unit
          pg_data_unit
        end

        private

        # @return [Avm::EacUbuntuBase0::Instances::Base]
        def platform_instance_uncached
          ::Avm::EacUbuntuBase0::Instances::Base.by_id(id)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
eac_tools-0.69.1 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/base.rb
eac_tools-0.69.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/base.rb
eac_tools-0.68.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/base.rb
eac_tools-0.67.1 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/base.rb
avm-eac_webapp_base0-0.17.2 lib/avm/eac_webapp_base0/instances/base.rb
eac_tools-0.67.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/base.rb
avm-eac_webapp_base0-0.17.1 lib/avm/eac_webapp_base0/instances/base.rb
eac_tools-0.66.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/base.rb