def do():
    if len(sys.argv) == 1:
        help()
        return
    param = sys.argv[1]
    if "installAll" == param:
        commCheck.do()
        commBuild.do()
    elif "startAll" == param:
        commBuild.start()
    elif "stopAll" == param:
        commBuild.end()
    elif "startServer" == param:
        commCheck.checkServerPort()
        commBuild.startServer()
    elif "stopServer" == param:
        commBuild.stopServer()
    elif "startWeb" == param:
        commCheck.checkWebPort()
        commBuild.startWeb()
    elif "stopWeb" == param:
        commBuild.stopWeb()
    elif "check" == param:
        commCheck.do()
    elif "help" == param:
        help()
    else:
        paramError()
    return
Beispiel #2
0
def do():
    if len(sys.argv)==1:
        help()
        return
    param = sys.argv[1]
    if "installAll" == param:
        gl.set_install_all()
        commCheck.do()
        commBuild.do()
    elif "startAll" == param:
        commCheck.checkPort()
        commBuild.start()
    elif "stopAll" == param:
        commBuild.end()
    elif "installWeBASE" == param:
        gl.set_visual_deploy()
        commCheck.visual_do()
        commBuild.visual_do()
    elif "startWeBASE" == param:
        commCheck.visualCheckPort()
        commBuild.visualStart()
    elif "stopWeBASE" == param:
        commBuild.visualEnd()
    elif "startNode" == param:
        commBuild.startNode()
    elif "stopNode" == param:
        commBuild.stopNode()
    elif "startWeb" == param:
        commBuild.startWeb()
    elif "stopWeb" == param:
        commBuild.stopWeb()
    elif "startManager" == param:
        commBuild.startManager()
    elif "stopManager" == param:
        commBuild.stopManager()
    elif "startFront" == param:
        commBuild.startFront()
    elif "stopFront" == param:
        commBuild.stopFront()
    elif "startSign" == param:
        commBuild.startSign()
    elif "stopSign" == param:
        commBuild.stopSign()
    elif "check"== param:
        commCheck.do()
    elif "help"== param:
        help()
    else:
        paramError()
    return
Beispiel #3
0
def do():
    if len(sys.argv)==1:
        help()
        return
    param = sys.argv[1]
    if "installAll" == param:
        commCheck.do()
        commBuild.do()
    elif "startAll" == param:
        commCheck.checkPort()
        commBuild.start()
    elif "stopAll" == param:
        commBuild.end()
    elif "startNode" == param:
        commBuild.startNode()
    elif "stopNode" == param:
        commBuild.stopNode()
    elif "startWeb" == param:
        commBuild.startWeb()
    elif "stopWeb" == param:
        commBuild.stopWeb()
    elif "startManager" == param:
        commBuild.startManager()
    elif "stopManager" == param:
        commBuild.stopManager()
    elif "startFront" == param:
        commBuild.startFront()
    elif "stopFront" == param:
        commBuild.stopFront()
    elif "startSign" == param:
        commBuild.startSign()
    elif "stopSign" == param:
        commBuild.stopSign()
    elif "check"== param:
        commCheck.do()
    elif "help"== param:
        help()
    else:
        paramError()
    return