From 2729a167e8f76a6100cf01e31583bdb9927a08e5 Mon Sep 17 00:00:00 2001 From: Stephen McQuay Date: Thu, 24 Jan 2013 18:38:27 -0800 Subject: [PATCH] Added example for function composition --- composition.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 composition.py diff --git a/composition.py b/composition.py new file mode 100644 index 0000000..ae0cb4a --- /dev/null +++ b/composition.py @@ -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()