fsconsul.py 文件源码

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

项目:Railtrack 作者: JeevesTakesOver 项目源码 文件源码
def install_fsconsul(self):
        """ installs fsconsul """
        log_green('installing fsconsul ...')
        with settings(
            hide('stdout', 'running'),
            host_string=self.host_string,
            private_key_filename=self.private_key
        ):
            add_usr_local_bin_to_path()

            with cd('/usr/local/bin'):
                if 'fsconsul' not in sudo('ls'):
                    sudo('wget -O fsconsul -c '
                         'https://bintray.com/cimpress-mcp/Go/download_file?'
                         'file_path=v0.6.5%2Flinux-amd64%2Ffsconsul')
                    sudo('chmod 755 fsconsul')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号