Class: Gitlab::Template::DockerfileTemplate
Instance Attribute Summary
Attributes inherited from BaseTemplate
#category
Class Method Summary
collapse
Instance Method Summary
collapse
#<=>, all, by_category, category_directory, #content, find, #full_name, #initialize, #name, #project_id, repository_template_names, #resolve!, template_names_by_category, template_subsets, #to_json
Class Method Details
.base_dir ⇒ Object
21
22
23
|
# File 'lib/gitlab/template/dockerfile_template.rb', line 21
def base_dir
Rails.root.join('vendor/Dockerfile')
end
|
.categories ⇒ Object
15
16
17
18
19
|
# File 'lib/gitlab/template/dockerfile_template.rb', line 15
def categories
{
"General" => ''
}
end
|
.extension ⇒ Object
11
12
13
|
# File 'lib/gitlab/template/dockerfile_template.rb', line 11
def extension
'.Dockerfile'
end
|
.finder(project = nil) ⇒ Object
Instance Method Details
#description ⇒ Object
6
7
8
|
# File 'lib/gitlab/template/dockerfile_template.rb', line 6
def description
"# This file is a template, and might need editing before it works on your project."
end
|