module Gitlab::Triage::ExpandCondition

Constants

PIPELINE

Public Class Methods

expand(conditions, pipeline = PIPELINE) click to toggle source
# 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
perform(conditions, pipeline = PIPELINE, &block) click to toggle source
# File lib/gitlab/triage/expand_condition.rb, line 12
def self.perform(conditions, pipeline = PIPELINE, &block)
  expand([conditions], pipeline).each(&block)
end