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) elif options.action == "alltemplate": from func import alltemplate alltemplate.alltemplate(options.templatetype) elif options.action == "recoverbinlog": from func import recoverByMysql recoverByMysql.recoverByMysql(options.failureip,options.recoverDate,options.serverfile) elif options.action == "assetrooms": from func import assets_count assets_count.assetrooms(options.gamerooms,options.projecttag)
def addwhiteip_func(options): from func import addwhiteip addwhiteip.addwhiteip(options.iplist, options.yx)
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) elif options.action == "alltemplate": from func import alltemplate alltemplate.alltemplate(options.templatetype) elif options.action == "recoverbinlog": from func import recoverByMysql recoverByMysql.recoverByMysql(options.failureip, options.recoverDate, options.serverfile) elif options.action == "assetrooms": from func import assets_count assets_count.assetrooms(options.gamerooms, options.projecttag)