move line to proper place
This commit is contained in:
parent
77adf17622
commit
ab3b689045
@ -17,8 +17,9 @@ class AmazonCopy
|
|||||||
videolisting.on_s3 = true
|
videolisting.on_s3 = true
|
||||||
videolisting.save
|
videolisting.save
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
handle_asynchronously :download_video
|
||||||
|
|
||||||
|
|
||||||
def download_file_and_upload_to_s3 url, videocode, extension, prefix
|
def download_file_and_upload_to_s3 url, videocode, extension, prefix
|
||||||
file = Tempfile.new ["video_", ".#{extension}"], "#{Rails.root}/tmp"
|
file = Tempfile.new ["video_", ".#{extension}"], "#{Rails.root}/tmp"
|
||||||
@ -36,5 +37,4 @@ class AmazonCopy
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
handle_asynchronously :download_video
|
|
||||||
end
|
end
|
Loading…
Reference in New Issue
Block a user