summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gitlab/__init__.py2
-rw-r--r--gitlab/v4/objects.py12
2 files changed, 14 insertions, 0 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py
index 63766ff..9e64a36 100644
--- a/gitlab/__init__.py
+++ b/gitlab/__init__.py
@@ -115,6 +115,8 @@ class Gitlab(object):
if self._api_version == '3':
self.keys = objects.KeyManager(self)
self.teams = objects.TeamManager(self)
+ else:
+ self.dockerfiles = objects.DockerfileManager(self)
# build the "submanagers"
for parent_cls in six.itervalues(vars(objects)):
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index 630ee81..0384382 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -305,6 +305,18 @@ class NotificationSettingsManager(BaseManager):
obj_cls = NotificationSettings
+class Dockerfile(GitlabObject):
+ _url = '/templates/dockerfiles'
+ canDelete = False
+ canUpdate = False
+ canCreate = False
+ idAttr = 'name'
+
+
+class DockerfileManager(BaseManager):
+ obj_cls = Dockerfile
+
+
class Gitignore(GitlabObject):
_url = '/templates/gitignores'
canDelete = False