Class: Avm::Stereotypes::EacWebappBase0::Instance
Constant Summary
Instances::Base::ID_PATTERN
Instance Attribute Summary
#application, #suffix
#docker_image_options
Instance Method Summary
collapse
#pg
by_id, #host_env_uncached, #id, #initialize, #to_s
#full_entry_path, #inherited_entry_value, #other_entry_value, #path_prefix, #read_entry, #read_entry_optional
#docker_container_exist?, #docker_container_name
Instance Method Details
#data_dump(argv = []) ⇒ Object
#data_dump_runner_class ⇒ Object
23
24
25
|
# File 'lib/avm/stereotypes/eac_webapp_base0/instance.rb', line 23
def data_dump_runner_class
"::Avm::Tools::Runner::#{stereotype_name}::Data::Dump".constantize
end
|
#data_package ⇒ Object
32
33
34
35
36
|
# File 'lib/avm/stereotypes/eac_webapp_base0/instance.rb', line 32
def data_package
@data_package ||= ::Avm::Data::Instance::Package.new(
self, units: { database: database_unit }.merge(files_units)
)
end
|
#database_unit ⇒ Object
38
39
40
|
# File 'lib/avm/stereotypes/eac_webapp_base0/instance.rb', line 38
def database_unit
pg.data_unit
end
|
#run_subcommand(subcommand_class, argv) ⇒ Object
27
28
29
30
|
# File 'lib/avm/stereotypes/eac_webapp_base0/instance.rb', line 27
def run_subcommand(subcommand_class, argv)
parent = ::OpenStruct.new(instance: self)
subcommand_class.new(argv: argv, parent: parent).run
end
|
#stereotype_name ⇒ Object
15
16
17
|
# File 'lib/avm/stereotypes/eac_webapp_base0/instance.rb', line 15
def stereotype_name
self.class.name.desconstantize.demodulize
end
|