mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FEATURE: rolls up 1.2.*.* IP ranges when number of entries > 10
This commit is contained in:
24
script/import_scripts/tnation.rb
Normal file
24
script/import_scripts/tnation.rb
Normal 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
|
Reference in New Issue
Block a user