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')
评论列表
文章目录