|
|
@ -13,7 +13,7 @@ namespace :core do |
|
|
|
|
|
|
|
|
|
|
|
desc "Export all data XMLs for import into Central Data System (CDS)" |
|
|
|
desc "Export all data XMLs for import into Central Data System (CDS)" |
|
|
|
task :full_data_export_xml, %i[year] => :environment do |_task, args| |
|
|
|
task :full_data_export_xml, %i[year] => :environment do |_task, args| |
|
|
|
collection_year = args[:year].presence |
|
|
|
collection_year = args[:year].present? ? args[:year].to_i : nil |
|
|
|
storage_service = Storage::S3Service.new(PlatformHelper.is_paas? ? Configuration::PaasConfigurationService.new : Configuration::EnvConfigurationService.new, ENV["EXPORT_PAAS_INSTANCE"]) |
|
|
|
storage_service = Storage::S3Service.new(PlatformHelper.is_paas? ? Configuration::PaasConfigurationService.new : Configuration::EnvConfigurationService.new, ENV["EXPORT_PAAS_INSTANCE"]) |
|
|
|
export_service = Exports::LettingsLogExportService.new(storage_service) |
|
|
|
export_service = Exports::LettingsLogExportService.new(storage_service) |
|
|
|
|
|
|
|
|
|
|
|