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-models-4.1.0 app/jobs/create_derivatives_job.rb
sufia-4.0.1 sufia-models/app/jobs/create_derivatives_job.rb
sufia-models-4.0.1 app/jobs/create_derivatives_job.rb
sufia-models-4.0.0 app/jobs/create_derivatives_job.rb
sufia-4.0.0 sufia-models/app/jobs/create_derivatives_job.rb
sufia-4.0.0.rc2 sufia-models/app/jobs/create_derivatives_job.rb
sufia-models-4.0.0.rc2 app/jobs/create_derivatives_job.rb
sufia-4.0.0.rc1 sufia-models/lib/sufia/models/jobs/create_derivatives_job.rb
sufia-models-4.0.0.rc1 lib/sufia/models/jobs/create_derivatives_job.rb
sufia-4.0.0.beta4 sufia-models/lib/sufia/models/jobs/create_derivatives_job.rb
sufia-models-4.0.0.beta4 lib/sufia/models/jobs/create_derivatives_job.rb
sufia-models-4.0.0.beta3 lib/sufia/models/jobs/create_derivatives_job.rb
sufia-4.0.0.beta3 sufia-models/lib/sufia/models/jobs/create_derivatives_job.rb