Module: Matches

Defined in:
lib/tasks/helpers/matches.rb

Overview

This file is distributed under New Relic’s license terms. See github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. frozen_string_literal: true

Instance Method Summary collapse

Instance Method Details

#look_for_seed(tasks) ⇒ Object



6
7
8
9
10
11
# File 'lib/tasks/helpers/matches.rb', line 6

def look_for_seed(tasks)
  matches = tasks.map { |t| /(seed=.*?)[,\]]/.match(t) }.compact
  if matches.any?
    matches.first[1]
  end
end