update import sample to not have passwords and stuff like that

This commit is contained in:
Sam 2015-12-01 12:30:41 +11:00
parent 1f7c03df5c
commit 0cffbf87c3
1 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ require File.expand_path(File.dirname(__FILE__) + "/base.rb")
class ImportScripts::Kunena < ImportScripts::Base class ImportScripts::Kunena < ImportScripts::Base
KUNENA_DB = "accentral_jos1" KUNENA_DB = "DATABASENAME"
def initialize def initialize
super super
@ -11,9 +11,9 @@ class ImportScripts::Kunena < ImportScripts::Base
@users = {} @users = {}
@client = Mysql2::Client.new( @client = Mysql2::Client.new(
host: "aircadetcentral.net", host: "HOSTNAME.COM",
username: "accentral_jos1", username: "DATABASE_USER_NAME",
password: "Lc3bwPL7iEY(8", password: "DATABASE_USER_PASSWORD",
database: KUNENA_DB database: KUNENA_DB
) )
end end
@ -48,7 +48,7 @@ class ImportScripts::Kunena < ImportScripts::Base
import_posts import_posts
begin begin
create_admin(email: 'dave@ricey.co', username: UserNameSuggester.suggest('DJRice')) create_admin(email: 'CHANGE@ME.COM', username: UserNameSuggester.suggest('CHAMGEME'))
rescue => e rescue => e
puts '', "Failed to create admin user" puts '', "Failed to create admin user"
puts e.message puts e.message