From b859d0d0b638e03498d620dcfa09a6aacfe44f0e Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Tue, 3 Nov 2020 16:54:10 +0000 Subject: Initial new raider-specific config --- lib/longboat/raiders.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/longboat/raiders.rb') diff --git a/lib/longboat/raiders.rb b/lib/longboat/raiders.rb index cd93858..f907f01 100644 --- a/lib/longboat/raiders.rb +++ b/lib/longboat/raiders.rb @@ -15,7 +15,9 @@ module Longboat cname = reqname.split('_').map(&:capitalize).join require "#{dir}/#{reqname}" - @raiders[reqname] = Kernel.const_get(cname).new(@collector, raider_config) + raider = Kernel.const_get(cname).new(@collector, raider_config) + raider.configure! if raider.respond_to?(:configure!) + @raiders[reqname] = raider end end end -- cgit v1.2.1