Mercurial > code > home > repos > infra
comparison packages.py @ 60:a949704defd0
new pyinfra
author | drewp@bigasterisk.com |
---|---|
date | Sun, 01 May 2022 23:31:20 -0700 |
parents | 4c15fc1e879d |
children | 50100cad1f38 |
comparison
equal
deleted
inserted
replaced
59:fa7a71b8a97f | 60:a949704defd0 |
---|---|
71 home = '/home/drewp' | 71 home = '/home/drewp' |
72 local = f"{home}/.local/kitty" | 72 local = f"{home}/.local/kitty" |
73 dl = f'/tmp/kitty-{vers}-x86_64.txz' | 73 dl = f'/tmp/kitty-{vers}-x86_64.txz' |
74 files.download(src=f"https://github.com/kovidgoyal/kitty/releases/download/v{vers}/kitty-{vers}-x86_64.txz", | 74 files.download(src=f"https://github.com/kovidgoyal/kitty/releases/download/v{vers}/kitty-{vers}-x86_64.txz", |
75 dest=dl) | 75 dest=dl) |
76 files.makedirs(local, exist_ok=True) | 76 files.directory(local) |
77 server.shell([ | 77 server.shell([ |
78 f"mkdir -p {local}", # https://github.com/Fizzadar/pyinfra/issues/777 | 78 f"mkdir -p {local}", # https://github.com/Fizzadar/pyinfra/issues/777 |
79 f"aunpack --extract-to={local} {dl}", | 79 f"aunpack --extract-to={local} {dl}", |
80 ]) | 80 ]) |
81 files.link(target="{local}/bin/kitty", path="{home}/bin/kitty") | 81 files.link(target="{local}/bin/kitty", path="{home}/bin/kitty") |