Class: Gitlab::Ci::Config::External::Mapper
- Inherits:
-
Object
- Object
- Gitlab::Ci::Config::External::Mapper
- Includes:
- Utils::StrongMemoize
- Defined in:
- lib/gitlab/ci/config/external/mapper.rb,
lib/gitlab/ci/config/external/mapper/base.rb,
lib/gitlab/ci/config/external/mapper/filter.rb,
lib/gitlab/ci/config/external/mapper/matcher.rb,
lib/gitlab/ci/config/external/mapper/verifier.rb,
lib/gitlab/ci/config/external/mapper/normalizer.rb,
lib/gitlab/ci/config/external/mapper/location_expander.rb,
lib/gitlab/ci/config/external/mapper/variables_expander.rb
Defined Under Namespace
Classes: Base, Filter, LocationExpander, Matcher, Normalizer, VariablesExpander, Verifier
Constant Summary collapse
- Error =
Class.new(StandardError)
- AmbigiousSpecificationError =
Class.new(Error)
- TooManyIncludesError =
Class.new(Error)
- TooMuchDataInPipelineTreeError =
Class.new(Error)
Instance Method Summary collapse
-
#initialize(values, context) ⇒ Mapper
constructor
A new instance of Mapper.
- #process ⇒ Object
Constructor Details
#initialize(values, context) ⇒ Mapper
Returns a new instance of Mapper.
15 16 17 18 |
# File 'lib/gitlab/ci/config/external/mapper.rb', line 15 def initialize(values, context) @locations = Array.wrap(values.fetch(:include, [])).compact @context = context end |
Instance Method Details
#process ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/gitlab/ci/config/external/mapper.rb', line 20 def process return [] if @locations.empty? context.logger.instrument(:config_mapper_process) do process_without_instrumentation end end |