Class: Quandl::Utility::ThorTasks::Notify
- Inherits:
-
Thor
- Object
- Thor
- Quandl::Utility::ThorTasks::Notify
- Defined in:
- lib/quandl/utility/thor_tasks/notify.rb
Overview
Tasks for sending notifications
Instance Method Summary collapse
Instance Method Details
#slack(message, channel) ⇒ Object
34 35 36 37 38 39 |
# File 'lib/quandl/utility/thor_tasks/notify.rb', line 34 def slack(, channel) slack_client = Slack::Notifier.new([:team], [:token]) slack_client.channel = channel slack_client.username = [:botname] slack_client.ping(, icon_emoji: [:emoji]) end |