Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab_ci_syntax_yml_template.rb « template « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3bf3a28d3c56ba6257ef8aa3b1013ca98a63eb75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# frozen_string_literal: true

module Gitlab
  module Template
    class GitlabCiSyntaxYmlTemplate < BaseTemplate
      class << self
        def extension
          '.gitlab-ci.yml'
        end

        def categories
          {
            'General' => ''
          }
        end

        def base_dir
          Rails.root.join('lib/gitlab/ci/syntax_templates')
        end

        def finder(project = nil)
          Gitlab::Template::Finders::GlobalTemplateFinder.new(
            self.base_dir, self.extension, self.categories
          )
        end
      end
    end
  end
end