2022-10-11 01:57:18 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module Ci
|
|
|
|
class ProjectConfig
|
|
|
|
class Remote < Source
|
|
|
|
def content
|
|
|
|
strong_memoize(:content) do
|
|
|
|
next unless ci_config_path =~ URI::DEFAULT_PARSER.make_regexp(%w[http https])
|
|
|
|
|
|
|
|
YAML.dump('include' => [{ 'remote' => ci_config_path }])
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2023-05-27 22:25:52 +05:30
|
|
|
def internal_include_prepended?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
|
2022-10-11 01:57:18 +05:30
|
|
|
def source
|
|
|
|
:remote_source
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|