Class: Gitlab::Ci::ProjectConfig::Remote

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

Instance Method Summary collapse

Methods inherited from Source

ref, release_url

Instance Method Details

#contentObject



7
8
9
10
11
12
13
# File 'lib/gitlab/ci/project_config/remote.rb', line 7

def content
  strong_memoize(:content) do
    next unless URI::DEFAULT_PARSER.make_regexp(%w[http https]).match?(ci_config_path)

    YAML.dump('include' => [{ 'remote' => ci_config_path }])
  end
end

#internal_include_prepended?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/gitlab/ci/project_config/remote.rb', line 15

def internal_include_prepended?
  true
end

#sourceObject



19
20
21
# File 'lib/gitlab/ci/project_config/remote.rb', line 19

def source
  :remote_source
end