discourse/migrations/lib/cli/import_command.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

15 lines
275 B
Ruby

# frozen_string_literal: true
module Migrations::CLI
class ImportCommand
def initialize(options)
@options = options
end
def execute
::Migrations.load_rails_environment(quiet: true)
::Migrations::Importer.execute(@options)
end
end
end