31 lines
665 B
Ruby
31 lines
665 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Gitlab
|
|
module Template
|
|
class DockerfileTemplate < BaseTemplate
|
|
def description
|
|
"# This file is a template, and might need editing before it works on your project."
|
|
end
|
|
|
|
class << self
|
|
def extension
|
|
'.Dockerfile'
|
|
end
|
|
|
|
def categories
|
|
{
|
|
"General" => ''
|
|
}
|
|
end
|
|
|
|
def base_dir
|
|
Rails.root.join('vendor/Dockerfile')
|
|
end
|
|
|
|
def finder(project = nil)
|
|
Gitlab::Template::Finders::GlobalTemplateFinder.new(self.base_dir, self.extension, self.categories)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|