refactor: remove ACCEPT_EULA option from nebula serve due to qlikcore engine deprecation (#724)

This commit is contained in:
Li Kang
2021-12-06 10:00:06 +01:00
committed by GitHub
parent 6fe584cff8
commit 7c43dd09dc
10 changed files with 1 additions and 124 deletions

View File

@@ -3,21 +3,15 @@
const yargs = require('yargs');
const mashupServer = require('../test/mashup/server');
const useEngine = require('../commands/serve/lib/engine');
const args = yargs
.option('start', {
default: true,
type: 'boolean',
describe: 'Start the mashup server',
})
.option('engine', {
default: false,
type: 'boolean',
describe: 'Start the engine',
}).argv;
const { start, engine } = args;
const { start } = args;
let hasCleanedUp = false;
const services = [];
@@ -36,23 +30,6 @@ if (start) {
});
}
if (engine) {
let e;
services.push({
name: 'Qlik Engine',
start: async () => {
e = await useEngine({
ACCEPT_EULA: true,
files: ['./test/fixtures/docker/docker-compose.yml'],
cwd: process.cwd(),
});
},
stop: async () => {
e && (await e());
},
});
}
function cleanup() {
if (hasCleanedUp) {
return;