Class: Gitlab::Ci::ProjectConfig::AutoDevops
- Inherits:
-
Source
- Object
- Source
- Gitlab::Ci::ProjectConfig::AutoDevops
show all
- Defined in:
- lib/gitlab/ci/project_config/auto_devops.rb
Instance Attribute Summary
Attributes inherited from Source
#pipeline_policy_context
Instance Method Summary
collapse
Methods inherited from Source
#exists?, #initialize, #url
Instance Method Details
#content ⇒ Object
7
8
9
10
11
12
13
14
|
# File 'lib/gitlab/ci/project_config/auto_devops.rb', line 7
def content
strong_memoize(:content) do
next unless project&.auto_devops_enabled?
template = Gitlab::Template::GitlabCiYmlTemplate.find(template_name)
YAML.dump('include' => [{ 'template' => template.full_name }])
end
end
|
#internal_include_prepended? ⇒ Boolean
16
17
18
|
# File 'lib/gitlab/ci/project_config/auto_devops.rb', line 16
def internal_include_prepended?
true
end
|
#source ⇒ Object
20
21
22
|
# File 'lib/gitlab/ci/project_config/auto_devops.rb', line 20
def source
:auto_devops_source
end
|