Class: Capistrano3::Notification::Slack
- Defined in:
- lib/capistrano3/notification/slack.rb
Instance Attribute Summary
Attributes inherited from Adapter
Instance Method Summary collapse
Methods inherited from Adapter
Constructor Details
This class inherits a constructor from Capistrano3::Notification::Adapter
Instance Method Details
#notify(message) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/capistrano3/notification/slack.rb', line 6 def notify() = { username: user, channel: channel }.reject { |_x, y| y.nil? } = {}.tap do |h| h[icon_type] = icon if icon_type end ::Slack::Notifier.new(webhook_url, ).ping , end |