2020-08-03 09:09:42 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module Template
|
|
|
|
class MetricsDashboardTemplate < BaseTemplate
|
2020-12-17 21:09:57 +00:00
|
|
|
def description
|
|
|
|
"# This file is a template, and might need editing before it works on your project."
|
2020-08-03 09:09:42 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class << self
|
|
|
|
def extension
|
|
|
|
'.metrics-dashboard.yml'
|
|
|
|
end
|
|
|
|
|
|
|
|
def categories
|
|
|
|
{
|
|
|
|
"General" => ''
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
def base_dir
|
|
|
|
Rails.root.join('lib/gitlab/metrics/templates')
|
|
|
|
end
|
|
|
|
|
|
|
|
def finder(project = nil)
|
|
|
|
Gitlab::Template::Finders::GlobalTemplateFinder.new(self.base_dir, self.extension, self.categories)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|