fabfile now reads applications/app/hosts
This commit is contained in:
Vendored
+3
@@ -5,6 +5,9 @@ import os
|
|||||||
import datetime
|
import datetime
|
||||||
import getpass
|
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.hosts = env.hosts or raw_input('hostname (example.com):').split(',')
|
||||||
env.user = env.user or raw_input('username :')
|
env.user = env.user or raw_input('username :')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user