From 51bbd51bcb970517a630d0eb4dcdca73bc04b1da Mon Sep 17 00:00:00 2001 From: Stephen McQuay Date: Thu, 24 Jan 2013 18:30:47 -0800 Subject: [PATCH] simple hosts example --- hosts.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 hosts.py diff --git a/hosts.py b/hosts.py new file mode 100644 index 0000000..64f84c1 --- /dev/null +++ b/hosts.py @@ -0,0 +1,6 @@ +from fabric.api import env, run + +env.hosts = ['web1', 'web2', 'web3'] + +def hello(): + run('hostname')