mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
25 lines
409 B
Ruby
25 lines
409 B
Ruby
|
# 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
|