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

27 lines
544 B
Ruby
Raw Normal View History

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" => '',
"Global" => 'Global'
}
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