fixed typo in Service
This commit is contained in:
parent
c86d0e1d8b
commit
00a9c8dc4f
@ -14,7 +14,7 @@ class Service extends CLIAppBase {
|
||||
|
||||
var name = args[0];
|
||||
|
||||
var result = ServiceManager.instace.start(name);
|
||||
var result = ServiceManager.instance.start(name);
|
||||
return handleResult(result);
|
||||
},"Start a service");
|
||||
|
||||
@ -25,7 +25,7 @@ class Service extends CLIAppBase {
|
||||
|
||||
var name = args[0];
|
||||
|
||||
var result = ServiceManager.instace.stop(name);
|
||||
var result = ServiceManager.instance.stop(name);
|
||||
return handleResult(result);
|
||||
},"Stop a service");
|
||||
|
||||
@ -38,7 +38,7 @@ class Service extends CLIAppBase {
|
||||
var binName = args[1];
|
||||
var rest = args.slice(2);
|
||||
|
||||
var result = ServiceManager.instace.register(name, binName, rest);
|
||||
var result = ServiceManager.instance.register(name, binName, rest);
|
||||
return handleResult(result);
|
||||
},"Register a new service");
|
||||
|
||||
@ -49,13 +49,13 @@ class Service extends CLIAppBase {
|
||||
|
||||
var name = args[0];
|
||||
|
||||
var result = ServiceManager.instace.unregister(name);
|
||||
var result = ServiceManager.instance.unregister(name);
|
||||
return handleResult(result);
|
||||
},"Unregister a service");
|
||||
|
||||
registerSyncSubcommand("list", (args) ->{
|
||||
|
||||
var list = ServiceManager.instace.listRunning();
|
||||
var list = ServiceManager.instance.listRunning();
|
||||
|
||||
for (name in list) {
|
||||
this.handle.writeLine(name);
|
||||
|
@ -60,6 +60,6 @@ class Init {
|
||||
KernelEvents.instance.startEventLoop();
|
||||
});
|
||||
|
||||
ServiceManager.instace = new ServiceManager();
|
||||
ServiceManager.instance = new ServiceManager();
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ import lib.KVStore;
|
||||
using tink.CoreApi;
|
||||
|
||||
class ServiceManager {
|
||||
public static var instace: ServiceManager;
|
||||
public static var instance: ServiceManager;
|
||||
|
||||
private final services:Map<String,Service> = new Map();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user