2016-06-02 16:20:08 +00:00
|
|
|
module Gitlab
|
|
|
|
module Template
|
2016-06-16 13:33:11 +00:00
|
|
|
class GitlabCiYml < BaseTemplate
|
2016-06-17 06:37:19 +00:00
|
|
|
def content
|
|
|
|
explanation = "# This file is a template, and might need editing before it works on your project."
|
|
|
|
[explanation, super].join("\n")
|
|
|
|
end
|
|
|
|
|
2016-06-02 16:20:08 +00:00
|
|
|
class << self
|
|
|
|
def extension
|
|
|
|
'.gitlab-ci.yml'
|
|
|
|
end
|
|
|
|
|
|
|
|
def categories
|
|
|
|
{
|
|
|
|
"General" => '',
|
2016-06-16 08:09:41 +00:00
|
|
|
"Pages" => 'Pages'
|
2016-06-02 16:20:08 +00:00
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
def base_dir
|
|
|
|
Rails.root.join('vendor/gitlab-ci-yml')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|