Mercurial > code > home > repos > infra
comparison tasks.py @ 149:ae13e608b105
switch from pip to pdm
author | drewp@bigasterisk.com |
---|---|
date | Sat, 11 Mar 2023 12:23:37 -0800 |
parents | ee0384eebee5 |
children | 522f26c8f691 |
comparison
equal
deleted
inserted
replaced
148:2016d1096f49 | 149:ae13e608b105 |
---|---|
3 cmd = ''' | 3 cmd = ''' |
4 HOME=/root | 4 HOME=/root |
5 export HOME | 5 export HOME |
6 eval `keychain --quiet --eval id_ecdsa` | 6 eval `keychain --quiet --eval id_ecdsa` |
7 cd /my/proj/infra | 7 cd /my/proj/infra |
8 env/bin/pyinfra ''' | 8 ~drewp/bin/pdm run pyinfra ''' |
9 | 9 |
10 def _run(ctx, s): | 10 def _run(ctx, s): |
11 ctx.run(cmd + 'inventory.py %s' % s, pty=True, echo=True) | 11 ctx.run(cmd + 'inventory.py %s' % s, pty=True, echo=True) |
12 | 12 |
13 | 13 |