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)


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

def local_source_path
  user_local_source_path || auto_local_source_path
end

#local_source_path_entryEacConfig::Entry

Returns:

  • (EacConfig::Entry)


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

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

#user_local_source_pathPath?

Returns:

  • (Path, nil)


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

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