Sha256: 00b7931ff8960aa120348c89b946b705ffdcc7ddbbcd87c44a1f396427afc597
Contents?: true
Size: 716 Bytes
Versions: 6
Compression:
Stored size: 716 Bytes
Contents
# frozen_string_literal: true module Appsignal module Helpers module Heartbeat # @deprecated Use {Appsignal::CheckIn.cron} instead. def heartbeat(name, &block) unless @heartbeat_helper_deprecation_warning_emitted callers = caller Appsignal::Utils::StdoutAndLoggerMessage.warning \ "The helper Appsignal.heartbeat has been deprecated. " \ "Please update the helper call to Appsignal::CheckIn.cron " \ "in the following file and elsewhere to remove this message.\n#{callers.first}" @heartbeat_helper_deprecation_warning_emitted = true end Appsignal::CheckIn.cron(name, &block) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems