Sha256: a02a66bc465764011cdcc73ba1867b6366a21df8067fc965f74dabc44f9e4dc6
Contents?: true
Size: 629 Bytes
Versions: 54
Compression:
Stored size: 629 Bytes
Contents
# frozen_string_literal: true module Bulkrax class DownloadCloudFileJob < ApplicationJob queue_as :import # Retrieve cloud file and write to the imports directory # Note: if using the file system, the mounted directory in # browse_everything MUST be shared by web and worker servers def perform(file, target_file) retriever = BrowseEverything::Retriever.new retriever.download(file, target_file) do |filename, retrieved, total| # The block is still useful for showing progress, but the # first argument is the filename instead of a chunk of data. end end end end
Version data entries
54 entries across 54 versions & 1 rubygems