예제 #1
0
def tst_run_time_test():
    return shell('date')
예제 #2
0
def ocean_connect_test():
    return shell('python manage.py ocean console git status')
예제 #3
0
def vc_status_test():
    return shell('python manage.py vc status')
예제 #4
0
def tst_files_test():
    return shell('ls -l test')
예제 #5
0
def list_processes(args=[]):
    text = shell('ps -ef')
    for pattern in args:
        text = match_pattern(text, pattern)
    return text
예제 #6
0
def django_settings_test():
    return shell('cat hammer/settings.py')
예제 #7
0
def django_webserver_test():
    if is_server():
        return shell('cat hammer/wsgi.py /etc/systemd/system/gunicorn.service /etc/nginx/sites-available/sensei')
    else:
        config = shell('cat hammer/wsgi.py hammer/config/gunicorn.conf hammer/config/nginx.conf')
        return '%s is not the Server. Configuration is not active. \n\n%s' % (hostname(), config)
예제 #8
0
def django_pipenv_test():
    return shell('pip list')
예제 #9
0
def django_python_path_test():
    return shell('which python')
예제 #10
0
def django_python_version_test():
    return shell('python --version')
예제 #11
0
def django_hammer_test():
    return shell('ls -l hammer|grep -v sensei.db')
예제 #12
0
def system_files_test():
    return shell('ls -l|grep -v hammer') + shell('pwd')