fabfile.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:Simplechaindb 作者: BUAANLSDE 项目源码 文件源码
def set_host(host_index):
    """A helper task to change env.hosts from the
    command line. It will only "stick" for the duration
    of the fab command that called it.

    Args:
        host_index (int): 0, 1, 2, 3, etc.
    Example:
        fab set_host:4 fab_task_A fab_task_B
        will set env.hosts = [public_dns_names[4]]
        but only for doing fab_task_A and fab_task_B
    """
    env.hosts = [public_hosts[int(host_index)]]
    env.password = [public_pwds[int(host_index)]]


# Install base software
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号