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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
572 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +05:30
# frozen_string_literal: true
2016-06-22 15:30:34 +05:30
module Gitlab
module Template
2016-09-13 17:45:13 +05:30
class GitignoreTemplate < BaseTemplate
2016-06-22 15:30:34 +05:30
class << self
def extension
'.gitignore'
end
def categories
{
"Languages" => '',
2022-10-11 01:57:18 +05:30
"Global" => 'Global'
2016-06-22 15:30:34 +05:30
}
end
def base_dir
Rails.root.join('vendor/gitignore')
end
2016-09-13 17:45:13 +05:30
def finder(project = nil)
Gitlab::Template::Finders::GlobalTemplateFinder.new(self.base_dir, self.extension, self.categories)
end
2016-06-22 15:30:34 +05:30
end
end
end
end