debian-mirror-gitlab/lib/gitlab/ci/pipeline/chain/config/content/remote.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
601 B
Ruby
Raw Normal View History

2020-01-01 13:55:28 +05:30
# 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
2020-11-24 15:15:51 +05:30
next unless ci_config_path =~ URI::DEFAULT_PARSER.make_regexp(%w[http https])
2020-01-01 13:55:28 +05:30
YAML.dump('include' => [{ 'remote' => ci_config_path }])
end
end
def source
:remote_source
end
end
end
end
end
end
end
end