rosa-build/app/jobs/destroy_files_from_file_sto...

13 lines
237 B
Ruby
Raw Normal View History

2016-06-10 14:21:42 +01:00
class DestroyFilesFromFileStoreJob
include Sidekiq::Worker
sidekiq_options :queue => :low
def perform(sha1)
file = FileStoreService::File.new
sha1.each do |hash|
file.sha1 = hash
file.destroy
end
end
end