Class: CreateDerivativesJob
Instance Attribute Summary
#pid
Instance Method Summary
collapse
#initialize, #object
Instance Method Details
#queue_name ⇒ Object
2
3
4
|
# File 'app/jobs/create_derivatives_job.rb', line 2
def queue_name
:derivatives
end
|
#run ⇒ Object
6
7
8
9
10
11
12
13
|
# File 'app/jobs/create_derivatives_job.rb', line 6
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
|