Class: Gitlab::Template::ServiceDeskTemplate

Inherits:
BaseTemplate show all
Defined in:
lib/gitlab/template/service_desk_template.rb

Instance Attribute Summary

Attributes inherited from BaseTemplate

#category

Class Method Summary collapse

Methods inherited from BaseTemplate

#<=>, all, by_category, categories, category_directory, #content, dropdown_names, find, #full_name, #initialize, #name, #resolve!, #to_json

Constructor Details

This class inherits a constructor from Gitlab::Template::BaseTemplate

Class Method Details

.base_dirObject


11
12
13
# File 'lib/gitlab/template/service_desk_template.rb', line 11

def base_dir
  '.gitlab/service_desk_templates/'
end

.extensionObject


7
8
9
# File 'lib/gitlab/template/service_desk_template.rb', line 7

def extension
  '.md'
end

.finder(project) ⇒ Object


15
16
17
# File 'lib/gitlab/template/service_desk_template.rb', line 15

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