modified the way custom services can be imported and added a test case to verify the import functionality

This commit is contained in:
Blake J. Harnden 2017-08-03 14:27:39 -07:00
parent 78ff7f2189
commit 35c48e67a3
5 changed files with 121 additions and 20 deletions

View file

@ -64,6 +64,7 @@ class MyService(CoreService):
return 'echo " network %s"' % net
# this is needed to load desired services when being integrated into core, otherwise this is not needed
def load_services():
# this line is required to add the above class to the list of available services
ServiceManager.add(MyService)