summaryrefslogtreecommitdiff
path: root/lib/api/templates.rb
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2016-11-08 12:42:58 +0000
committerLuke "Jared" Bennett <lbennett@gitlab.com>2016-11-08 13:54:58 +0000
commitdcd20236ec0f05b46702611f09e2af8094a383ae (patch)
tree105ad8544c70fe3d0e51929898310c6eebe54203 /lib/api/templates.rb
parent6970c1f331e1f56424ff90fe43113d9f512bce95 (diff)
downloadgitlab-ce-dcd20236ec0f05b46702611f09e2af8094a383ae.tar.gz
Refactored JS
Added spec
Diffstat (limited to 'lib/api/templates.rb')
-rw-r--r--lib/api/templates.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/api/templates.rb b/lib/api/templates.rb
index 442fef1a848..2d887e15f28 100644
--- a/lib/api/templates.rb
+++ b/lib/api/templates.rb
@@ -9,7 +9,10 @@ module API
klass: Gitlab::Template::GitlabCiYmlTemplate,
gitlab_version: 8.9
},
- dockerfiles: Gitlab::Template::DockerfileTemplate
+ dockerfiles: {
+ klass: Gitlab::Template::DockerfileTemplate,
+ gitlab_version: 8.9
+ }
}.freeze
PROJECT_TEMPLATE_REGEX =
/[\<\{\[]