Exemple #1
0
func (appGallery *AppGallery) GetApp(bootDescriptor descriptors.AppDescriptor) (app *App, err error) {
	appDir := appGallery.resolveAppDir(bootDescriptor)

	return &App{
		Directory:           appDir,
		bootDescriptor:      bootDescriptor,
		filesDirectory:      filepath.Join(appDir, filesDirName),
		localDescriptorPath: filepath.Join(appDir, bootDescriptor.GetDescriptorFileName()),
	}, nil
}