Sha256: 38e0f3415e399350ba436134b509844ecfa78da2553ead7d1c76661b2fce61cf
Contents?: true
Size: 569 Bytes
Versions: 2
Compression:
Stored size: 569 Bytes
Contents
require 'uri' ## # Delivers derivatives to external services, like GeoServer ## class DeliveryJob < ActiveJob::Base queue_as CurationConcerns.config.ingest_queue_name ## # Precondition is that all derivatives are created and saved. # @param [FileSet] file_set # @param [String] content_url contains the display copy to deliver def perform(file_set, content_url) uri = URI.parse(content_url) raise NotImplementedError, 'Only supports file URLs' unless uri.scheme == 'file' GeoConcerns::DeliveryService.new(file_set, uri.path).publish end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
geo_concerns-0.0.10 | app/jobs/delivery_job.rb |
geo_concerns-0.0.9 | app/jobs/delivery_job.rb |