summaryrefslogtreecommitdiff
path: root/gitlab
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2013-05-19 14:02:18 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2013-05-19 14:02:18 +0200
commit9ca47aa3365648fc497055b9e6fca5caaa59e81c (patch)
tree2944aa05af4b8070055e811b7ef83f1ee849adff /gitlab
parente7ba350fe948def59da8c4043df45a24f867f225 (diff)
downloadgitlab-9ca47aa3365648fc497055b9e6fca5caaa59e81c.tar.gz
gitlab: update the object syntax
Diffstat (limited to 'gitlab')
-rwxr-xr-xgitlab5
1 files changed, 4 insertions, 1 deletions
diff --git a/gitlab b/gitlab
index 5feef55..e02f9c2 100755
--- a/gitlab
+++ b/gitlab
@@ -81,8 +81,11 @@ except:
if action not in ['get', 'list', 'update', 'create', 'delete']:
die("Unknown action: %s" % action)
+def whatToCls(what):
+ return "".join([s.capitalize() for s in what.split("-")])
+
try:
- cls = gitlab.__dict__[what]
+ cls = gitlab.__dict__[whatToCls(what)]
except:
die("Unknown object: %s" % what)