sharedlists/lib/tasks/ftp_sync.rake

8 lines
212 B
Ruby
Raw Normal View History

2021-12-18 11:50:56 +01:00
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