Sha256: 8579bd4b9dc69dca94b02ff786341597bf5bba6ca602732bbec11eea0166ea0b
Contents?: true
Size: 448 Bytes
Versions: 1
Compression:
Stored size: 448 Bytes
Contents
require 'slack-notifier' module SimpleDeploy class Notifier class Slack def initialize(args = {}) @logger = SimpleDeploy.logger @notifier = ::Slack::Notifier.new SimpleDeploy.config.notifications['slack']['webhook_url'] end def send(message) @logger.info "Sending Slack notification." @notifier.ping message @logger.info "Slack notification complete." end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_deploy-0.10.2 | lib/simple_deploy/notifier/slack.rb |