Module: Avm::Applications::Base::Naming

Defined in:
lib/avm/applications/base/naming.rb

Constant Summary collapse

DEFAULT_NAME =
'_Undefined_'

Instance Method Summary collapse

Instance Method Details

#default_nameString

Returns:

  • (String)


12
13
14
# File 'lib/avm/applications/base/naming.rb', line 12

def default_name
  DEFAULT_NAME
end

#nameString

Returns:

  • (String)


17
18
19
# File 'lib/avm/applications/base/naming.rb', line 17

def name
  name_from_configuration || default_name
end

#name_from_configurationString

Returns:

  • (String)


22
23
24
# File 'lib/avm/applications/base/naming.rb', line 22

def name_from_configuration
  entry(::Avm::Instances::EntryKeys::NAME).optional_value
end