debian-mirror-gitlab/lib/gitlab/template/dockerfile_template.rb

32 lines
665 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +05:30
# frozen_string_literal: true
2017-08-17 22:00:37 +05:30
module Gitlab
module Template
class DockerfileTemplate < BaseTemplate
2021-03-08 18:12:59 +05:30
def description
"# This file is a template, and might need editing before it works on your project."
2017-08-17 22:00:37 +05:30
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