Sha256: b0ec63fc88f04f2f7f2b2fbda871ebfb5781395ca0b35e4c5372c80a8f45eca9
Contents?: true
Size: 341 Bytes
Versions: 2
Compression:
Stored size: 341 Bytes
Contents
require 'populus/helpers' require 'slack-notifier' Populus::Helpers.define_helper :notify_to_slack do |message, options={}| notifier = Slack::Notifier.new Populus.config.slack_webhook notifier.channel = options[:channel] if options[:channel] notifier.username = options[:username] if options[:username] notifier.ping message end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
populus-0.0.4 | lib/populus/helpers/slack.rb |
populus-0.0.3 | lib/populus/helpers/slack.rb |