def install_involucro(involucro_context=None, to_path=None): to_path = involucro_context.involucro_bin download_cmd = " ".join( commands.download_command(involucro_link(), to=to_path, quote_url=True)) full_cmd = "%s && chmod +x %s" % (download_cmd, to_path) return involucro_context.shell_exec(full_cmd)
def untar_to(url, path, tar_args): download_cmd = " ".join(download_command(url, quote_url=True)) if tar_args: if not os.path.exists(path): os.makedirs(path) untar_cmd = "tar %s" % tar_args shell("%s | %s" % (download_cmd, untar_cmd)) else: shell("%s > '%s'" % (download_cmd, path))
def install_involucro(involucro_context=None, to_path=None): install_path = os.path.abspath(involucro_context.involucro_bin) involucro_context.involucro_bin = install_path download_cmd = " ".join(commands.download_command(involucro_link(), to=install_path, quote_url=True)) full_cmd = "%s && chmod +x %s" % (download_cmd, install_path) return involucro_context.shell_exec(full_cmd)