Class: Gitlab::Ci::Pipeline::Chain::Config::Content::Bridge

Inherits:
Source
  • Object
show all
Defined in:
lib/gitlab/ci/pipeline/chain/config/content/bridge.rb

Constant Summary

Constants inherited from Source

Source::DEFAULT_YAML_FILE

Instance Attribute Summary

Attributes inherited from Source

#command

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

#contentObject


10
11
12
13
14
# File 'lib/gitlab/ci/pipeline/chain/config/content/bridge.rb', line 10

def content
  return unless @command.bridge

  @command.bridge.yaml_for_downstream
end

#sourceObject


16
17
18
# File 'lib/gitlab/ci/pipeline/chain/config/content/bridge.rb', line 16

def source
  :bridge_source
end