Sha256: beca8b9da45a103054a63804934db1eb0c1c4b50f11c1f0be320281281f269d4
Contents?: true
Size: 472 Bytes
Versions: 1
Compression:
Stored size: 472 Bytes
Contents
require 'sidekiq' require 'active_job' include Sidekiq::Worker module Forcast module Jobs module JobsAssets class ClearAssests < ActiveJob::Base sidekiq_options queue: 'manage_assets' def perform (folder) system("cd #{folder}") #Borro ultimo archivo system("ls -t -r | head -1 | xargs rm") end end class SyncAssests < ActiveJob::Base sidekiq_options queue: 'manage_assets' def perform (array) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
forcast-0.0.110 | lib/forcast/jobs/jobs_assets.rb |