Sha256: 6d1be2b8d01c17977e23473079ccfd9911aa6d6511d1cc57765c8dcbf5056861

Contents?: true

Size: 306 Bytes

Versions: 33

Compression:

Stored size: 306 Bytes

Contents

class CreateDerivativesJob < ActiveFedoraPidBasedJob
  def queue_name
    :derivatives
  end

  def run
    return unless generic_file.content.has_content?
    if generic_file.video?
      return unless Sufia.config.enable_ffmpeg
    end
    generic_file.create_derivatives
    generic_file.save
  end
end

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
sufia-5.0.0 sufia-models/app/jobs/create_derivatives_job.rb
sufia-models-5.0.0 app/jobs/create_derivatives_job.rb
sufia-6.0.0.rc4 sufia-models/app/jobs/create_derivatives_job.rb
sufia-models-6.0.0.rc4 app/jobs/create_derivatives_job.rb
sufia-6.0.0.rc3 sufia-models/app/jobs/create_derivatives_job.rb
sufia-models-6.0.0.rc3 app/jobs/create_derivatives_job.rb
sufia-5.0.0.rc1 sufia-models/app/jobs/create_derivatives_job.rb
sufia-models-5.0.0.rc1 app/jobs/create_derivatives_job.rb
sufia-6.0.0.rc2 sufia-models/app/jobs/create_derivatives_job.rb
sufia-models-6.0.0.rc2 app/jobs/create_derivatives_job.rb
sufia-6.0.0.rc1 sufia-models/app/jobs/create_derivatives_job.rb
sufia-models-6.0.0.rc1 app/jobs/create_derivatives_job.rb
sufia-4.3.1 sufia-models/app/jobs/create_derivatives_job.rb
sufia-models-4.3.1 app/jobs/create_derivatives_job.rb
sufia-6.0.0.beta1 sufia-models/app/jobs/create_derivatives_job.rb
sufia-models-6.0.0.beta1 app/jobs/create_derivatives_job.rb
sufia-models-5.0.0.beta1 app/jobs/create_derivatives_job.rb
sufia-4.2.0 sufia-models/app/jobs/create_derivatives_job.rb
sufia-models-4.2.0 app/jobs/create_derivatives_job.rb
sufia-4.1.0 sufia-models/app/jobs/create_derivatives_job.rb