fabfile now reads applications/app/hosts

This commit is contained in:
mdipierro
2016-02-07 00:09:55 -06:00
parent 35216db750
commit 106930ed73

3
fabfile.py vendored
View File

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