sharedlists/lib/tasks/ftp_sync.rake
2021-12-18 11:50:56 +01:00

7 lines
212 B
Ruby

desc "Sync files via FTP. Update articles."
task sync_ftp_files: :environment do
Supplier.ftp_sync.all.each do |supplier|
puts "FTP-sync files for #{supplier.name}..."
supplier.sync_ftp_files
end
end