Class: CircleciDeploymentNotifier::Slack
- Inherits:
-
Object
- Object
- CircleciDeploymentNotifier::Slack
- Defined in:
- lib/circleci_deployment_notifier/slack.rb
Overview
Sends notifications to Slack. Builds the message using a BuildInfo object.
Instance Method Summary collapse
-
#initialize(webhook_url:, app_name:, build_info:) ⇒ Slack
constructor
A new instance of Slack.
-
#send ⇒ Object
Sends the message to Slack.
Constructor Details
#initialize(webhook_url:, app_name:, build_info:) ⇒ Slack
Returns a new instance of Slack.
12 13 14 15 16 |
# File 'lib/circleci_deployment_notifier/slack.rb', line 12 def initialize(webhook_url:, app_name:, build_info:) self.webhook_url = webhook_url self.app_name = app_name self.build_info = build_info end |
Instance Method Details
#send ⇒ Object
Sends the message to Slack.
19 20 21 |
# File 'lib/circleci_deployment_notifier/slack.rb', line 19 def send slack_notifier.post end |