Skip to content

Instantly share code, notes, and snippets.

@MartinMuzatko
Created December 17, 2019 09:44
Show Gist options
  • Save MartinMuzatko/19d9950c34104aa4d06ba28154824c2a to your computer and use it in GitHub Desktop.
Save MartinMuzatko/19d9950c34104aa4d06ba28154824c2a to your computer and use it in GitHub Desktop.
const createAppsConfig = configFiles => ({
...configFiles,
config: configFiles.appInstances,
list: partial(list, [configFiles]),
get: partial(get, [configFiles]),
create: partial(create, [configFiles]),
edit: partial(edit, [configFiles]),
remove: partial(remove, [configFiles]),
update: partial(update, [configFiles]),
initApps: partial(initApps, [configFiles]),
getAppURL: partial(getAppURL, [configFiles]),
completeSetup: partial(completeSetup, [configFiles]),
completeDownload: partial(completeDownload, [configFiles]),
validateApp: partial(validateApp, [configFiles]),
canUpdate: partial(canUpdate, [configFiles]),
canCreateApp: partial(canCreateApp, [configFiles]),
unlock: partial(unlock, [configFiles]),
})
const appInstances = createConfig(APPSCONFIGPATH)
const appCatalog = require('./appCatalog')
const updateBackend = require('../../update')
module.exports = {
file: createAppsConfig({ serverconfig, appCatalog, appInstances }),
edit,
get,
list,
update,
create,
remove,
unlock,
completeDownload,
completeSetup,
mergeAppWithDefaults,
initApps,
findByDockerImage,
findById,
isDownloadable,
isLoading,
createAppsConfig,
SICONOS_APP,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment