mirror of
https://github.com/neocities/neocities.git
synced 2026-05-26 05:34:53 +00:00
10 lines
273 B
Ruby
10 lines
273 B
Ruby
class BlackBoxWorker
|
|
include Sidekiq::Worker
|
|
sidekiq_options queue: :black_box, retry: 10, backtrace: true
|
|
|
|
def perform(site_id, path)
|
|
site = Site[site_id]
|
|
return true if site.nil? || site.is_deleted
|
|
BlackBox.new(site, path).tos_violation_check!
|
|
end
|
|
end |