Sha256: 699ada514559f6f3b40f55884b2d1bc124d5277fa27769dcf1619188d23fe2b6

Contents?: true

Size: 279 Bytes

Versions: 3

Compression:

Stored size: 279 Bytes

Contents

require 'csv_fast_importer'

desc 'Test csv_fast_importer gem in a rails application context'
task :csv_fast_importer => :environment do
  file = File.new 'knights.csv'
  imported_lines_count = CsvFastImporter.import(file)

  puts "#{imported_lines_count} knights imported."
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
csv_fast_importer-1.2.0 sample-app/lib/tasks/csv_fast_importer.rake
csv_fast_importer-1.1.0 sample-app/lib/tasks/csv_fast_importer.rake
csv_fast_importer-1.0.0 sample-app/lib/tasks/csv_fast_importer.rake