#To read csv file require 'csv'

namespace :workarea do

desc 'Import magento CSV file content..'

task import_magento_content: :environment do
  # Instantiated the ImportMagentoContent class
  @import_data = Workarea::MagentoMigrator::Product.new
  @import_data.read_csv_file # Calling the read_csv_file method
end

end