Class: Quandl::Utility::ThorTasks::CI

Inherits:
Thor
  • Object
show all
Defined in:
lib/quandl/utility/thor_tasks/ci.rb

Overview

Tasks to run on CI Server

Instance Method Summary collapse

Instance Method Details

#notify_slack(message = nil) ⇒ Object



14
15
16
17
# File 'lib/quandl/utility/thor_tasks/ci.rb', line 14

def notify_slack(message = nil)
  notification = message.nil? ? ci_build_message : "#{ci_build_message} - #{message}"
  Quandl::Slack::Ci.ping(notification, channel: slack_channel, icon_emoji: slack_emoji)
end