Class: Gitlab::Template::MetricsDashboardTemplate
Instance Attribute Summary
Attributes inherited from BaseTemplate
#category
Class Method Summary
collapse
Instance Method Summary
collapse
#<=>, all, by_category, category_directory, dropdown_names, find, #full_name, #initialize, #name, #resolve!, template_subsets, #to_json
Class Method Details
.base_dir ⇒ Object
22
23
24
|
# File 'lib/gitlab/template/metrics_dashboard_template.rb', line 22
def base_dir
Rails.root.join('lib/gitlab/metrics/templates')
end
|
.categories ⇒ Object
16
17
18
19
20
|
# File 'lib/gitlab/template/metrics_dashboard_template.rb', line 16
def categories
{
"General" => ''
}
end
|
.extension ⇒ Object
12
13
14
|
# File 'lib/gitlab/template/metrics_dashboard_template.rb', line 12
def extension
'.metrics-dashboard.yml'
end
|
.finder(project = nil) ⇒ Object
Instance Method Details
#content ⇒ Object
6
7
8
9
|
# File 'lib/gitlab/template/metrics_dashboard_template.rb', line 6
def content
explanation = "# This file is a template, and might need editing before it works on your project."
[explanation, super].join("\n")
end
|