discourse/migrations/lib/importer.rb
Gerhard Schlager b31189e0b4
DEV: Add --reset option to import command (#33317)
It deletes the MappingDB before executing the import. That's useful
during development when you repeat the import multiple times.
2025-06-24 22:58:32 +02:00

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