Posting an external notification to Slack using the slack-notifier gem

require 'slack-notifier'

url = 'https://hooks.slack.com/services/[your unique slack token]'
notifier = Slack::Notifier.new url
notifier.ping "Hello World"

Resources