From 106930ed733aeb685e487dbb739b8d1de77a062a Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sun, 7 Feb 2016 00:09:55 -0600 Subject: [PATCH] fabfile now reads applications/app/hosts --- fabfile.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fabfile.py b/fabfile.py index 87457f5f..07574bd1 100644 --- a/fabfile.py +++ b/fabfile.py @@ -5,6 +5,9 @@ import os import datetime import getpass +if os.path.exists('hosts'): + env.hosts = [h.strip() for h in open('hosts').readlines() if h.strip()] + env.hosts = env.hosts or raw_input('hostname (example.com):').split(',') env.user = env.user or raw_input('username :')