Example #1
0
File: service.py Project: 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()
Example #2
0
File: tasks.py Project: 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()
Example #3
0
File: main.py Project: 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()
Example #4
0
File: main.py Project: 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()
Example #5
0
File: main.py Project: 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()
Example #6
0
File: checker.py Project: 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()