summaryrefslogtreecommitdiff
path: root/subplot
diff options
context:
space:
mode:
Diffstat (limited to 'subplot')
-rw-r--r--subplot/client.py12
-rw-r--r--subplot/client.yaml6
2 files changed, 18 insertions, 0 deletions
diff --git a/subplot/client.py b/subplot/client.py
index bea3b18..09b1556 100644
--- a/subplot/client.py
+++ b/subplot/client.py
@@ -3,6 +3,18 @@ import os
import yaml
+def start_obnam(ctx):
+ start_chunk_server = globals()["start_chunk_server"]
+ install_obnam(ctx)
+ start_chunk_server(ctx)
+
+
+def stop_obnam(ctx):
+ stop_chunk_server = globals()["stop_chunk_server"]
+ stop_chunk_server(ctx)
+ uninstall_obnam(ctx)
+
+
def install_obnam(ctx):
runcmd_prepend_to_path = globals()["runcmd_prepend_to_path"]
srcdir = globals()["srcdir"]
diff --git a/subplot/client.yaml b/subplot/client.yaml
index 9817186..ec41344 100644
--- a/subplot/client.yaml
+++ b/subplot/client.yaml
@@ -1,3 +1,9 @@
+- given: "a working Obnam system"
+ impl:
+ python:
+ function: start_obnam
+ cleanup: stop_obnam
+
- given: "an installed obnam"
impl:
python: