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
16
17
18
19
20
|
# File 'lib/gitlab/triage/expand_condition.rb', line 16
def self.expand(conditions, pipeline = PIPELINE)
pipeline.inject(conditions) do |result, job|
result.flat_map(&job.method(:expand))
end
end
|
12
13
14
|
# File 'lib/gitlab/triage/expand_condition.rb', line 12
def self.perform(conditions, pipeline = PIPELINE, &block)
expand([conditions], pipeline).each(&block)
end
|