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
Direct Known Subclasses
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)
- InvalidTypeError =
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.
16 17 18 19 |
# File 'lib/gitlab/ci/config/external/mapper.rb', line 16 def initialize(values, context) @locations = Array.wrap(values.fetch(:include, [])).compact @context = context end |
Instance Method Details
#process ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/gitlab/ci/config/external/mapper.rb', line 21 def process return [] if @locations.empty? context.logger.instrument(:config_mapper_process) do process_without_instrumentation end end |