27 lines
580 B
Ruby
27 lines
580 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Gitlab
|
|
module Ci
|
|
module Pipeline
|
|
module Chain
|
|
module Config
|
|
class Content
|
|
class Remote < Source
|
|
def content
|
|
strong_memoize(:content) do
|
|
next unless ci_config_path =~ URI.regexp(%w[http https])
|
|
|
|
YAML.dump('include' => [{ 'remote' => ci_config_path }])
|
|
end
|
|
end
|
|
|
|
def source
|
|
:remote_source
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|