another example of composition
This commit is contained in:
parent
2729a167e8
commit
501ef7e35c
26
super_composition.py
Normal file
26
super_composition.py
Normal file
@ -0,0 +1,26 @@
|
||||
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_changes():
|
||||
# will run once here for each server:
|
||||
run_tests()
|
||||
|
||||
push_code()
|
||||
pull_code()
|
||||
restart_webserver()
|
Loading…
Reference in New Issue
Block a user