diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-04-07 15:24:40 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-04-07 16:54:03 +0300 |
commit | d52f5cbef49edff9ceb1b5092ed7e60553ce185a (patch) | |
tree | 7623145a540e4cae506ff7c0845b052d8ef5a07f /ick2/client.py | |
parent | daafee995775a5b79ef7bc23d819c39d30362061 (diff) | |
download | ick2-d52f5cbef49edff9ceb1b5092ed7e60553ce185a.tar.gz |
Add: new icktool2 command
Diffstat (limited to 'ick2/client.py')
-rw-r--r-- | ick2/client.py | 10 |
1 files changed, 9 insertions, 1 deletions
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: |