diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-03-27 11:35:55 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-03-27 11:35:55 +0200 |
commit | db13d8daefb524c4436220890da0b9089a4219cc (patch) | |
tree | a6adc34a7d46e25b0b273b1db8c7fe6bc8e99720 /subplot | |
parent | 177fee25ca7ab25e0c951344d1cce2f09b6f7372 (diff) | |
download | obnam2-db13d8daefb524c4436220890da0b9089a4219cc.tar.gz |
refactor: use generic step to run command, instead of custom one
Diffstat (limited to 'subplot')
-rw-r--r-- | subplot/client.py | 4 | ||||
-rw-r--r-- | subplot/client.yaml | 3 |
2 files changed, 0 insertions, 7 deletions
diff --git a/subplot/client.py b/subplot/client.py index 966324e..90642f3 100644 --- a/subplot/client.py +++ b/subplot/client.py @@ -35,10 +35,6 @@ def run_obnam_restore(ctx, filename=None, genid=None, todir=None): run_obnam_restore_with_genref(ctx, filename=filename, genref=genid, todir=todir) -def run_obnam_restore_latest(ctx, filename=None, todir=None): - run_obnam_restore_with_genref(ctx, filename=filename, genref="latest", todir=todir) - - def run_obnam_restore_with_genref(ctx, filename=None, genref=None, todir=None): runcmd_run = globals()["runcmd_run"] diff --git a/subplot/client.yaml b/subplot/client.yaml index f4bf48d..eba9212 100644 --- a/subplot/client.yaml +++ b/subplot/client.yaml @@ -8,9 +8,6 @@ - when: "I invoke obnam --config {filename} restore <{genid}> {todir}" function: run_obnam_restore -- when: "I invoke obnam --config {filename} restore latest {todir}" - function: run_obnam_restore_latest - - when: "I invoke obnam --config {filename} get-chunk <{gen_id}>" function: run_obnam_get_chunk |