gitlab-org--gitlab-foss/lib/gitlab/template/gitignore_template.rb

27 lines
544 B
Ruby
Raw Normal View History

2016-05-27 05:00:56 -04:00
module Gitlab
module Template
class GitignoreTemplate < BaseTemplate
2016-05-27 05:00:56 -04:00
class << self
def extension
'.gitignore'
end
def categories
{
"Languages" => '',
"Global" => 'Global'
2016-05-27 05:00:56 -04:00
}
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
2016-05-27 05:00:56 -04:00
end
end
end
end