FEATURE: Rake task to export and import category structure

This commit is contained in:
Vinoth Kannan
2017-10-27 01:59:36 +05:30
parent 1612818e2b
commit a00af4d85a
17 changed files with 621 additions and 327 deletions

View File

@ -500,3 +500,11 @@ task "import:create_vbulletin_permalinks" => :environment do
log "Done!"
end
desc 'Import existing exported file'
task 'import:file', [:file_name] => [:environment] do |_, args|
require "import_export/import_export"
ImportExport.import(args[:file_name])
puts "", "Done", ""
end