summaryrefslogtreecommitdiff
path: root/app/services/ci/send_pipeline_notification_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/ci/send_pipeline_notification_service.rb')
-rw-r--r--app/services/ci/send_pipeline_notification_service.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/app/services/ci/send_pipeline_notification_service.rb b/app/services/ci/send_pipeline_notification_service.rb
deleted file mode 100644
index ceb182801f7..00000000000
--- a/app/services/ci/send_pipeline_notification_service.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-module Ci
- class SendPipelineNotificationService
- attr_reader :pipeline
-
- def initialize(new_pipeline)
- @pipeline = new_pipeline
- end
-
- def execute(recipients)
- email_template = "pipeline_#{pipeline.status}_email"
-
- return unless Notify.respond_to?(email_template)
-
- recipients.each do |to|
- Notify.public_send(email_template, pipeline, to).deliver_later
- end
- end
- end
-end