コード例 #1
0
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)
コード例 #2
0
ファイル: io.py プロジェクト: lecorguille/planemo
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))
コード例 #3
0
ファイル: io.py プロジェクト: natefoo/planemo
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))
コード例 #4
0
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)