You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trustieforge/app/tasks/office_conver_task.rb

13 lines
293 B

#coding=utf-8
#
class OfficeConverTask
def conver(source_file, saved_file)
office = Trustie::Utils::Office.new(source_file)
if office.conver(saved_file)
Rails.logger.info "process ok: #{saved_file} "
end
end
handle_asynchronously :conver,:queue => 'office_conver'
end