mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
13 lines
243 B
Ruby
13 lines
243 B
Ruby
# frozen_string_literal: true
|
|
|
|
class TelemetrySendingJob < ApplicationJob
|
|
queue_as :default
|
|
|
|
def perform
|
|
return if ENV['DISABLE_TELEMETRY'] == 'true'
|
|
|
|
data = Telemetry::Gather.new.call
|
|
|
|
Telemetry::Send.new(data).call
|
|
end
|
|
end
|