FEATURE: rolls up 1.2.*.* IP ranges when number of entries > 10

This commit is contained in:
Régis Hanol
2014-11-27 19:29:30 +01:00
parent 062e954122
commit 5b90ceb71d
5 changed files with 99 additions and 17 deletions

View File

@ -0,0 +1,24 @@
# custom importer for www.t-nation.com, feel free to borrow ideas
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
require "mysql2"
class ImportScripts::Tnation < ImportScripts::Base
DATABASE = "tnation"
def initialize
super
@client = Mysql2::Client.new(
host: "localhost",
database: DATABASE
)
end
def execute
end
end
ImportScripts::Tnation.new.perform