mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
10 lines
381 B
Ruby
10 lines
381 B
Ruby
# frozen_string_literal: true
|
|
|
|
namespace :import do
|
|
# Usage: bundle exec rake import:big_file['/path/to/file.json','user@email.com']
|
|
desc 'Accepts a file path and user email and imports the data into the database'
|
|
|
|
task :big_file, %i[file_path user_email] => :environment do |_, args|
|
|
Tasks::Imports::GoogleRecords.new(args[:file_path], args[:user_email]).call
|
|
end
|
|
end
|