mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-04 21:54:41 +08:00
It deletes the MappingDB before executing the import. That's useful during development when you repeat the import multiple times.
13 lines
330 B
Ruby
13 lines
330 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Migrations
|
|
module Importer
|
|
def self.execute(options)
|
|
config_path = File.join(::Migrations.root_path, "config", "importer.yml")
|
|
config = YAML.load_file(config_path, symbolize_names: true)
|
|
|
|
executor = Executor.new(config, options)
|
|
executor.start
|
|
end
|
|
end
|
|
end
|