mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
FEATURE: Rake task to export and import category structure
This commit is contained in:
7
lib/tasks/export.rake
Normal file
7
lib/tasks/export.rake
Normal file
@ -0,0 +1,7 @@
|
||||
desc 'Export all the categories'
|
||||
task 'export:categories', [:include_group_users, :file_name] => [:environment] do |_, args|
|
||||
require "import_export/import_export"
|
||||
|
||||
ImportExport.export_categories(args[:include_group_users], args[:file_name])
|
||||
puts "", "Done", ""
|
||||
end
|
Reference in New Issue
Block a user