module Subexec::Notifications::Extensions
Public Instance Methods
run_with_notifications!()
click to toggle source
# File lib/subexec/notifications/extensions.rb, line 11 def run_with_notifications! ActiveSupport::Notifications.instrument "subexec.run", notification_payload do run_without_notifications! end end
Private Instance Methods
notification_payload()
click to toggle source
# File lib/subexec/notifications/extensions.rb, line 19 def notification_payload { sub: self, hostname: Socket.gethostname } end