fix(core): update

This commit is contained in:
Philipp Kunz 2019-09-03 15:24:49 +02:00
parent 01c7d2e482
commit de831b086f
2 changed files with 10 additions and 9 deletions

View File

@ -17,10 +17,17 @@ export class SmartDaemon {
this.systemdManager = new SmartDaemonSystemdManager(this);
}
public async addService(serviceName: string, workingDirectory): Promise<SmartDaemonService> {
public async addService(serviceNameArg: string, commandArg: string, workingDirectory?: string): Promise<SmartDaemonService> {
let serviceToAdd: SmartDaemonService;
const existingService = this.serviceMap.find(serviceArg => {
return serviceArg
})
return serviceArg.name === serviceNameArg;
});
if (!existingService) {
} else {
}
return serviceToAdd;
};
public async init() {

View File

@ -24,9 +24,3 @@ export {
};
// third party
import * as fs from 'fs-extra';
export {
fs
};