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

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

Constant Summary collapse

UnsupportedSourceError =
Class.new(StandardError)

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


12
13
14
15
16
17
18
# File 'lib/gitlab/ci/pipeline/chain/config/content/parameter.rb', line 12

def content
  strong_memoize(:content) do
    next unless command.content.present?

    command.content
  end
end

#sourceObject


20
21
22
# File 'lib/gitlab/ci/pipeline/chain/config/content/parameter.rb', line 20

def source
  :parameter_source
end