Sha256: 2c9df3a008721d3a33fe8cf635a82eccbe833c9c6cfb31b43d669afa313b0161

Contents?: true

Size: 289 Bytes

Versions: 6

Compression:

Stored size: 289 Bytes

Contents

class CreateDerivativesJob < ActiveFedoraIdBasedJob
  def queue_name
    :derivatives
  end

  def run
    return unless generic_file.content.has_content?
    return if generic_file.video? && !Sufia.config.enable_ffmpeg

    generic_file.create_derivatives
    generic_file.save
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sufia-models-6.7.0 app/jobs/create_derivatives_job.rb
sufia-models-6.6.1 app/jobs/create_derivatives_job.rb
sufia-models-6.6.0 app/jobs/create_derivatives_job.rb
sufia-models-6.5.0 app/jobs/create_derivatives_job.rb
sufia-models-6.4.0 app/jobs/create_derivatives_job.rb
sufia-models-6.3.0 app/jobs/create_derivatives_job.rb