Sha256: 9813369dfd977b20ca89020ede542782eac9242ada00d7838f7b5c478dca4ac1
Contents?: true
Size: 764 Bytes
Versions: 70
Compression:
Stored size: 764 Bytes
Contents
module UINotifications module RemoteExecutionJobs class BaseJobFinish < ::UINotifications::Base def initialize(job_invocation) @subject = job_invocation end def deliver! ::Notification.create!( :audience => Notification::AUDIENCE_USER, :notification_blueprint => blueprint, :initiator => initiator, :message => message, :subject => subject ) end def initiator User.anonymous_admin end def blueprint @blueprint ||= NotificationBlueprint.unscoped.find_by(:name => 'rex_job_succeeded') end def message UINotifications::StringParser.new(blueprint.message, { subject: subject }) end end end end
Version data entries
70 entries across 70 versions & 1 rubygems