Class: Avm::Applications::Base
- Inherits:
-
Object
- Object
- Avm::Applications::Base
show all
- Includes:
- Entries::Base
- Defined in:
- lib/avm/applications/base.rb,
lib/avm/applications/base/publishing.rb,
lib/avm/applications/base/stereotype.rb
Defined Under Namespace
Modules: Publishing, Stereotype
Constant Summary
collapse
- LOCAL_INSTANCE_SUFFIX =
'dev'
Instance Method Summary
collapse
#entries_provider_id, #entry, #full_entry_path, #path_prefix, #read_entry, #read_entry_optional
Instance Method Details
#instance(suffix) ⇒ Object
25
26
27
|
# File 'lib/avm/applications/base.rb', line 25
def instance(suffix)
stereotype.instance_class.new(self, suffix)
end
|
#local_instance_id ⇒ String
34
35
36
|
# File 'lib/avm/applications/base.rb', line 34
def local_instance_id
::Avm::Instances::Ids.build(id, local_instance_suffix)
end
|
#local_instance_suffix ⇒ String
49
50
51
|
# File 'lib/avm/applications/base.rb', line 49
def local_instance_suffix
LOCAL_INSTANCE_SUFFIX
end
|
#local_source_path ⇒ Pathname
39
40
41
|
# File 'lib/avm/applications/base.rb', line 39
def local_source_path
local_source_path_entry.value!.to_pathname
end
|
#local_source_path_entry ⇒ EacConfig::Entry
44
45
46
|
# File 'lib/avm/applications/base.rb', line 44
def local_source_path_entry
::EacConfig::Node.context.current.entry([local_instance_id, 'install', 'path'])
end
|
#name ⇒ Object
29
30
31
|
# File 'lib/avm/applications/base.rb', line 29
def name
entry(::Avm::Instances::EntryKeys::NAME).read
end
|
#to_s ⇒ Object
21
22
23
|
# File 'lib/avm/applications/base.rb', line 21
def to_s
id
end
|