Sha256: cd9511170530af211a42ccdf177c0f055ad39336b2bbdf8c110907cc3c33a4b5

Contents?: true

Size: 1.23 KB

Versions: 4

Compression:

Stored size: 1.23 KB

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

        # @return [Avm::Instances::Data::Package]
        def data_package
          @data_package ||= data_package_create
        end

        # @return [Avm::Instances::Data::Package]
        def data_package_create
          ::Avm::Instances::Data::Package.new(self)
        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

4 entries across 4 versions & 2 rubygems

Version Path
eac_tools-0.65.1 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/base.rb
eac_tools-0.65.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/base.rb
avm-eac_webapp_base0-0.17.0 lib/avm/eac_webapp_base0/instances/base.rb
eac_tools-0.64.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/base.rb