23 lines
338 B
Python
23 lines
338 B
Python
|
from fabric.api import run, local
|
||
|
|
||
|
def run_tests():
|
||
|
local("echo running tests")
|
||
|
# local("false")
|
||
|
|
||
|
|
||
|
def push_code():
|
||
|
local("echo pushing code")
|
||
|
|
||
|
|
||
|
def pull_code():
|
||
|
run("echo pulling code")
|
||
|
|
||
|
|
||
|
def restart_webserver():
|
||
|
run("echo restaring webserver")
|
||
|
|
||
|
|
||
|
def deploy_code_to_servers():
|
||
|
pull_code()
|
||
|
restart_webserver()
|