debian-mirror-gitlab/lib/gitlab/template/gitignore_template.rb
2022-10-11 01:57:18 +05:30

28 lines
572 B
Ruby

# frozen_string_literal: true
module Gitlab
module Template
class GitignoreTemplate < BaseTemplate
class << self
def extension
'.gitignore'
end
def categories
{
"Languages" => '',
"Global" => 'Global'
}
end
def base_dir
Rails.root.join('vendor/gitignore')
end
def finder(project = nil)
Gitlab::Template::Finders::GlobalTemplateFinder.new(self.base_dir, self.extension, self.categories)
end
end
end
end
end