summaryrefslogtreecommitdiff
path: root/lib/api/gitignores.rb
diff options
context:
space:
mode:
authorJacob Schatz <jschatz@gitlab.com>2016-06-21 10:56:41 +0000
committerJacob Schatz <jschatz@gitlab.com>2016-06-21 10:56:41 +0000
commit0d287b06a6fa7a373df03378f9f1a048e5890a4f (patch)
tree271a95f91752727a3ee350e4f47f82e9f6355357 /lib/api/gitignores.rb
parentf90c8c624d2bf0391a25ae07b1516d11948e1a81 (diff)
parent35383f33acaae6b286c203005b0410388a3bcca0 (diff)
downloadgitlab-ce-0d287b06a6fa7a373df03378f9f1a048e5890a4f.tar.gz
Merge branch '17521-gitlab-ci-yml-templates' into 'master'
GitLab CI Yaml template dropdown ## What does this MR do? Make it possible to select a dropdown for an easy start with GitLab CI. ## What are the relevant issue numbers? Closes #17521 ## TODO - [ ] Backend - [x] CHANGELOG item - [x] Fix rubocop failure - [x] API Support - [x] New tests - [x] Add disclaimer to the top of the gitlab-ci.yml - [ ] Frontend - [x] New tests See merge request !4411
Diffstat (limited to 'lib/api/gitignores.rb')
-rw-r--r--lib/api/gitignores.rb29
1 files changed, 0 insertions, 29 deletions
diff --git a/lib/api/gitignores.rb b/lib/api/gitignores.rb
deleted file mode 100644
index 270c9501dd2..00000000000
--- a/lib/api/gitignores.rb
+++ /dev/null
@@ -1,29 +0,0 @@
-module API
- class Gitignores < Grape::API
-
- # Get the list of the available gitignore templates
- #
- # Example Request:
- # GET /gitignores
- get 'gitignores' do
- present Gitlab::Gitignore.all, with: Entities::GitignoresList
- end
-
- # Get the text for a specific gitignore
- #
- # Parameters:
- # name (required) - The name of a license
- #
- # Example Request:
- # GET /gitignores/Elixir
- #
- get 'gitignores/:name' do
- required_attributes! [:name]
-
- gitignore = Gitlab::Gitignore.find(params[:name])
- not_found!('.gitignore') unless gitignore
-
- present gitignore, with: Entities::Gitignore
- end
- end
-end