Added example for function composition
This commit is contained in:
parent
c9f0a3ff1d
commit
2729a167e8
22
composition.py
Normal file
22
composition.py
Normal file
@ -0,0 +1,22 @@
|
||||
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()
|
Loading…
Reference in New Issue
Block a user