aboutsummaryrefslogtreecommitdiff
path: root/lib/longboat/raiders.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/longboat/raiders.rb')
-rw-r--r--lib/longboat/raiders.rb4
1 files changed, 3 insertions, 1 deletions
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