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)


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

def local_source_path
  user_local_source_path || auto_local_source_path
end

#local_source_path_entryEacConfig::Entry

Returns:

  • (EacConfig::Entry)


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

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

#user_local_source_pathPath?

Returns:

  • (Path, nil)


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

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