620d014aef
This commit builds on the groundwork in ee008e300b1ec0abcc90e6a30816ec0754cea0dd, which refactored the backend so the same code could be used for new dropdowns. In this commit its used for templates for the `.gitlab-ci.yml` files.
22 lines
379 B
Ruby
22 lines
379 B
Ruby
module Gitlab
|
|
module Template
|
|
class Gitignore < BaseTemplate
|
|
class << self
|
|
def extension
|
|
'.gitignore'
|
|
end
|
|
|
|
def categories
|
|
{
|
|
"Languages" => '',
|
|
"Global" => 'Global'
|
|
}
|
|
end
|
|
|
|
def base_dir
|
|
Rails.root.join('vendor/gitignore')
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|