I need to get fabric to set its hosts list by opening and reading a file to get the hosts. Setting it this way allows me to have a huge list of hosts without needing to edit my fabfile for this data each time. I tried this: def set_hosts(): env.hosts = [line.split(',') for line in open("host_file")] def uname(): run("uname -a") and def set_hosts(): env.hosts = open('hosts_file', 'r').readlines def
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く