Added example for function composition

This commit is contained in:
Stephen McQuay 2013-01-24 18:38:27 -08:00
parent c9f0a3ff1d
commit 2729a167e8
1 changed files with 22 additions and 0 deletions

22
composition.py Normal file
View 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()