module Matches

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

Public Instance Methods

look_for_seed(tasks) click to toggle source
# 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