mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Fix ruby linting (#29731)
This commit is contained in:
@@ -22,25 +22,25 @@ class ImportScripts::VBulletin < ImportScripts::Base
|
|||||||
|
|
||||||
# CHANGE THESE BEFORE RUNNING THE IMPORTER
|
# CHANGE THESE BEFORE RUNNING THE IMPORTER
|
||||||
|
|
||||||
DB_HOST ||= ENV["DB_HOST"] || "localhost"
|
DB_HOST = ENV["DB_HOST"] || "localhost"
|
||||||
DB_NAME ||= ENV["DB_NAME"] || "vbulletin"
|
DB_NAME = ENV["DB_NAME"] || "vbulletin"
|
||||||
DB_PW ||= ENV["DB_PW"] || ""
|
DB_PW = ENV["DB_PW"] || ""
|
||||||
DB_USER ||= ENV["DB_USER"] || "root"
|
DB_USER = ENV["DB_USER"] || "root"
|
||||||
TIMEZONE ||= ENV["TIMEZONE"] || "America/Los_Angeles"
|
TIMEZONE = ENV["TIMEZONE"] || "America/Los_Angeles"
|
||||||
TABLE_PREFIX ||= ENV["TABLE_PREFIX"] || "vb_"
|
TABLE_PREFIX = ENV["TABLE_PREFIX"] || "vb_"
|
||||||
ATTACHMENT_DIR ||= ENV["ATTACHMENT_DIR"] || "/path/to/your/attachment/folder"
|
ATTACHMENT_DIR = ENV["ATTACHMENT_DIR"] || "/path/to/your/attachment/folder"
|
||||||
IMAGES_DIR ||= ENV["IMAGES_DIR"] || "/path/to/your/images/folder"
|
IMAGES_DIR = ENV["IMAGES_DIR"] || "/path/to/your/images/folder"
|
||||||
|
|
||||||
# Hostname + path of the forum. Used to transform deeplinks to posts and attachments to internal links
|
# Hostname + path of the forum. Used to transform deeplinks to posts and attachments to internal links
|
||||||
FORUM_URL ||= ENV["FORUM_URL"] || "localhost/"
|
FORUM_URL = ENV["FORUM_URL"] || "localhost/"
|
||||||
|
|
||||||
# vBulletin forum ID to make to pre-seeded categories
|
# vBulletin forum ID to make to pre-seeded categories
|
||||||
FORUM_GENERAL_ID ||= ENV["FORUM_GENERAL_ID"].to_i || -1
|
FORUM_GENERAL_ID = ENV["FORUM_GENERAL_ID"].to_i || -1
|
||||||
FORUM_FEEDBACK_ID ||= ENV["FORUM_FEEDBACK_ID"].to_i || -1
|
FORUM_FEEDBACK_ID = ENV["FORUM_FEEDBACK_ID"].to_i || -1
|
||||||
FORUM_STAFF_ID ||= ENV["FORUM_STAFF_ID"].to_i || -1
|
FORUM_STAFF_ID = ENV["FORUM_STAFF_ID"].to_i || -1
|
||||||
|
|
||||||
# If non zero, create a user field containing the user title
|
# If non zero, create a user field containing the user title
|
||||||
CREATE_USERTITLE_FIELD ||= ENV["CREATE_USERTITLE_FIELD"].to_i != 0 || false
|
CREATE_USERTITLE_FIELD = ENV["CREATE_USERTITLE_FIELD"].to_i != 0 || false
|
||||||
|
|
||||||
# You might also want to change the title and message for the imported private message archive
|
# You might also want to change the title and message for the imported private message archive
|
||||||
# search for "PM ARCHIVE MESSAGE" in this script
|
# search for "PM ARCHIVE MESSAGE" in this script
|
||||||
|
|||||||
Reference in New Issue
Block a user