Class: Gitlab::Ci::Pipeline::Chain::Config::Content::Remote
- Defined in:
- lib/gitlab/ci/pipeline/chain/config/content/remote.rb
Constant Summary
Constants inherited from Source
Instance Attribute Summary
Attributes inherited from Source
Instance Method Summary collapse
Methods inherited from Source
#ci_config_path, #exists?, #initialize, #project
Methods included from Utils::StrongMemoize
#clear_memoization, #strong_memoize, #strong_memoized?
Constructor Details
This class inherits a constructor from Gitlab::Ci::Pipeline::Chain::Config::Content::Source
Instance Method Details
#content ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/gitlab/ci/pipeline/chain/config/content/remote.rb', line 10 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 |
#source ⇒ Object
18 19 20 |
# File 'lib/gitlab/ci/pipeline/chain/config/content/remote.rb', line 18 def source :remote_source end |