From d52f5cbef49edff9ceb1b5092ed7e60553ce185a Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 7 Apr 2018 15:24:40 +0300 Subject: Add: new icktool2 command --- ick2/client.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'ick2/client.py') diff --git a/ick2/client.py b/ick2/client.py index cda3649..ec2a113 100644 --- a/ick2/client.py +++ b/ick2/client.py @@ -154,7 +154,7 @@ class ControllerClient: return self._api.get_dict(url) def get_artifact_store_url(self): - version = self.version() + version = self.get_version() url = version.get('artifact_store') logging.info('Artifact store URL: %r', url) return url @@ -206,6 +206,14 @@ class ControllerClient: body = json.dumps(work) self._api.post(url, headers=headers, body=body) + def show(self, path): # pragma: no cover + url = self.url(path) + return self._api.get_dict(url) + + def create(self, path, obj): # pragma: no cover + url = self.url(path) + return self._api.post(url, body=obj) + class AuthClient: -- cgit v1.2.1