示例#1
0
文件: service.py 项目: rinfo/rdl
def clean():
    """ Cleans checker from system. Will assume tomcat is inactive """
    tomcat_stop()
    #sudo("rm -rf %(tomcat_webapps)s/rinfo-service" % venv())
    #sudo("rm -rf %(tomcat_webapps)s/rinfo-service.war" % venv())
    sudo("rm -rf %(tomcat)s/logs/rinfo-service*.*" % venv())
    tomcat_start()
示例#2
0
文件: tasks.py 项目: rinfo/rdl
def destroy_all_data(start_top_tomcat=True):
    destroy_main_data(start_top_tomcat=False)
    if start_top_tomcat:
        tomcat_stop()
    destroy_main_data(start_top_tomcat=False)
    destroy_service_data(start_top_tomcat=False)
    if start_top_tomcat:
        tomcat_start()
示例#3
0
文件: main.py 项目: rinfo/rdl
def clean():
    """ Cleans main from system """
    tomcat_stop()
    #sudo("rm -rf %(tomcat_webapps)s/rinfo-main" % venv())
    #sudo("rm -rf %(tomcat_webapps)s/rinfo-main.war" % venv())
    sudo("rm -rf %(tomcat)s/logs/rinfo-main*.*" % venv())
    #sudo("rm -rf %(rinfo_main_store)s/" % venv())
    tomcat_start()
示例#4
0
文件: main.py 项目: rinfo/rdl
def destroy_main_data(start_top_tomcat=True):
    if not role_is_active('main'):
        return
    if start_top_tomcat:
        tomcat_stop()
    sudo("rm -rf %(rinfo_main_store)s/*" % venv())
    if start_top_tomcat:
        tomcat_start()
示例#5
0
文件: main.py 项目: rinfo/rdl
def install_regression_data(restart_tomcat=True):
    """ Cleans main from system """
    if restart_tomcat:
        tomcat_stop()
    sudo("rm -rf %(rinfo_main_store)s/" % venv())
    sudo("mkdir %(rinfo_main_store)s/" % venv())
    with lcd("%(rinfo_main_store)s/" % venv()):
        sudo("tar xzvf /home/%(user)s/regression_test_data/rinfo_store.tar.gz" % venv())
        sudo("chown tomcat:root -R %(rinfo_main_store)s/" % venv())
    if restart_tomcat:
        tomcat_start()
示例#6
0
文件: checker.py 项目: rinfo/rdl
def clean():
    tomcat_stop()
    sudo("rm -rf %(tomcat_webapps)s/rinfo-checker" % venv())
    sudo("rm -rf %(tomcat_webapps)s/rinfo-checker.war" % venv())
    sudo("rm -rf %(tomcat)s/logs/rinfo-checker*.*" % venv())
    tomcat_start()