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

29 lines
575 B
Ruby
Raw Normal View History

# frozen_string_literal: true
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