Class: Gitlab::Ci::ProjectConfig::AutoDevops

Inherits:
Source
  • Object
show all
Defined in:
lib/gitlab/ci/project_config/auto_devops.rb

Instance Method Summary collapse

Methods inherited from Source

#exists?, #initialize, #url

Constructor Details

This class inherits a constructor from Gitlab::Ci::ProjectConfig::Source

Instance Method Details

#contentObject



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

Returns:

  • (Boolean)


16
17
18
# File 'lib/gitlab/ci/project_config/auto_devops.rb', line 16

def internal_include_prepended?
  true
end

#sourceObject



20
21
22
# File 'lib/gitlab/ci/project_config/auto_devops.rb', line 20

def source
  :auto_devops_source
end