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

7
lib/tasks/export.rake Normal file
View 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