Esempio n. 1
0
                 sys.exit(1)
     else:
         print "请输入生成模板的类型"
 elif options.action == "update":
     from func import update
     #update.update(options.sqlOrNot,options.sqlFile,options.backendUpload,options.backendChangeOrNot,options.backendName,options.executeVersionList,options.restart,options.resourceDir,options.replaceFile,options.addFile,options.addContent,options.specialScript,options.executeFirst,frontName)
     update.update(options.sqlFile,options.backendName,options.executeVersionList,options.restart,options.resourceDir,options.replaceFile,options.addFile,options.addContent,options.specialScript,options.executeFirst,options.frontName)
 elif options.action == "hotswap":
     from func import hotswap
     hotswap.hotswap(options.hotswapType,options.keyword)
 elif options.action == "cmd":
     from func import cmd
     cmd.cmd(options.cmd)
 elif options.action == "put":
     from func import put
     put.put(options.localfile,options.remotefile)
 elif options.action == "test":
     from func import test
     test.test()
 elif options.action == "restart":
     from func import restart
     restart.restart(options.restartType)
 elif options.action == "moveserver":
     from func import recoverByProject
     recoverByProject.recoverByProject(options.failureip,options.recoverip)
 elif options.action == "resetcleartime":
     from func import resetClearTime
     resetClearTime.reset(options.cleartime,options.starttime,options.servername)
 elif options.action == "addwhiteip":
     from func import addwhiteip
     addwhiteip.addwhiteip(options.iplist,options.yx)
Esempio n. 2
0
def put_func(options):
    from func import put
    put.put(options.localfile, options.remotefile)
Esempio n. 3
0
     #update.update(options.sqlOrNot,options.sqlFile,options.backendUpload,options.backendChangeOrNot,options.backendName,options.executeVersionList,options.restart,options.resourceDir,options.replaceFile,options.addFile,options.addContent,options.specialScript,options.executeFirst,frontName)
     update.update(options.sqlFile, options.backendName,
                   options.executeVersionList, options.restart,
                   options.resourceDir, options.replaceFile,
                   options.addFile, options.addContent,
                   options.specialScript, options.executeFirst,
                   options.frontName)
 elif options.action == "hotswap":
     from func import hotswap
     hotswap.hotswap(options.hotswapType, options.keyword)
 elif options.action == "cmd":
     from func import cmd
     cmd.cmd(options.cmd)
 elif options.action == "put":
     from func import put
     put.put(options.localfile, options.remotefile)
 elif options.action == "test":
     from func import test
     test.test()
 elif options.action == "restart":
     from func import restart
     restart.restart(options.restartType)
 elif options.action == "moveserver":
     from func import recoverByProject
     recoverByProject.recoverByProject(options.failureip, options.recoverip)
 elif options.action == "resetcleartime":
     from func import resetClearTime
     resetClearTime.reset(options.cleartime, options.starttime,
                          options.servername)
 elif options.action == "addwhiteip":
     from func import addwhiteip