Module: Gitlab::Triage::ExpandCondition
- Defined in:
- lib/gitlab/triage/expand_condition.rb,
lib/gitlab/triage/expand_condition/list.rb,
lib/gitlab/triage/expand_condition/sequence.rb,
lib/gitlab/triage/expand_condition/expansion.rb
Defined Under Namespace
Modules: List, Sequence
Classes: Expansion
Constant Summary
collapse
- PIPELINE =
[
List,
Sequence
].freeze
Class Method Summary
collapse
Class Method Details
.expand(conditions, pipeline = PIPELINE) ⇒ Object
18
19
20
21
22
|
# File 'lib/gitlab/triage/expand_condition.rb', line 18
def self.expand(conditions, pipeline = PIPELINE)
pipeline.inject(conditions) do |result, job|
result.flat_map(&job.method(:expand))
end
end
|
14
15
16
|
# File 'lib/gitlab/triage/expand_condition.rb', line 14
def self.perform(conditions, pipeline = PIPELINE, &block)
expand([conditions], pipeline).each(&block)
end
|