Module: Avm::Applications::Base::LocalSource

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

Instance Method Summary collapse

Instance Method Details

#local_source_pathPathname

Returns:

  • (Pathname)


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

def local_source_path
  user_local_source_path || auto_local_source_path
end

#local_source_path_entryEacConfig::Entry

Returns:

  • (EacConfig::Entry)


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

def local_source_path_entry
  ::EacConfig::Node.context.current.entry([local_instance_id, 'install', 'path'])
end

#user_local_source_pathPath?

Returns:

  • (Path, nil)


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

def user_local_source_path
  local_source_path_entry.value.if_present(&:to_pathname)
end