class Naminori::Notifier::Slack
Public Class Methods
notify(type, message, config)
click to toggle source
# File lib/naminori/notifier/slack.rb, line 6 def notify(type, message, config) icon = type == "add" ? ":white_check_mark:" : ":no_entry_sign:" notifier = ::Slack::Notifier.new( config.webhook_url, { channel: config.channel, username: config.user } ) notifier.ping icon + message, icon_emoji: ":sparkle:" rescue => e p e end