Sha256: eb190692bcf914f32ff065f7cca26c00525063e70582cc6bb0185f263821a769
Contents?: true
Size: 1.64 KB
Versions: 11
Compression:
Stored size: 1.64 KB
Contents
# frozen_string_literal: true require 'avm/instances/base' require 'avm/eac_postgresql_base0/instance_with' require 'avm/data/instance/files_unit' require 'avm/data/instance/package' require 'avm/eac_webapp_base0/deploy/file_unit' 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 FILES_UNITS = [].freeze def data_dump(argv = []) run_subcommand(data_dump_runner_class, argv) end def data_dump_runner_class "#{stereotype_namespace_module}::Runner::Data::Dump".constantize end def run_subcommand(subcommand_class, argv) subcommand_class.create( argv: argv, parent: ::Avm::EacWebappBase0::Instance::SubcommandParent.new(self) ).run end def data_package @data_package ||= ::Avm::Data::Instance::Package.new( self, units: { database: database_unit }.merge(files_units) ) 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 def files_units self.class.const_get('FILES_UNITS').transform_values do |fs_path_subpath| ::Avm::Data::Instance::FilesUnit.new(self, fs_path_subpath) end end end end end end
Version data entries
11 entries across 11 versions & 2 rubygems