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 :')