added frappy gui
This commit is contained in:
21
__init__.py
21
__init__.py
@ -30,22 +30,7 @@ this code is currently used:
|
||||
from servicemanager.base import ServiceManager, ServiceDown, UsageError, get_config
|
||||
from servicemanager.nicosman import NicosManager
|
||||
from servicemanager.seaman import SeaManager
|
||||
|
||||
|
||||
class FrappyManager(ServiceManager):
|
||||
group = 'frappy'
|
||||
services = ('main', 'stick', 'addons')
|
||||
USAGE = """
|
||||
Usage:
|
||||
|
||||
frappy list [<instance>]
|
||||
frappy start <instance> <service> <cfgfiles>
|
||||
frappy restart <instance> [<service>] [<cfgfiles>]
|
||||
frappy stop <instance> [<service>]
|
||||
|
||||
<service> is one of main, stick, addons
|
||||
<instance> is one of %s
|
||||
"""
|
||||
from servicemanager.frappyman import FrappyManager
|
||||
|
||||
|
||||
class SewebManager(ServiceManager):
|
||||
@ -85,7 +70,7 @@ def run(group, arglist):
|
||||
except AttributeError:
|
||||
raise UsageError("do not know '%s'" % ' '.join([serv.group, action] + arglist))
|
||||
except UsageError as e:
|
||||
print(repr(e))
|
||||
print(serv.usage())
|
||||
serv.usage()
|
||||
print('ERROR:', str(e))
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user