Class: Attachs::Jobs::DeleteJob

Inherits:
Base
  • Object
show all
Defined in:
lib/attachs/jobs/delete_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(paths) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/attachs/jobs/delete_job.rb', line 5

def perform(paths)
  paths.each do |path|
    if storage.exists?(path)
      storage.delete path
    end
  end
end