Sha256: 70e258ebe08aa9427416fef95d82b362bd7bdb25676c93aacf81143480719160

Contents?: true

Size: 291 Bytes

Versions: 13

Compression:

Stored size: 291 Bytes

Contents

Houston.config do
  # Notify #alerts of new alerts
  on "alert:create" do |alert|
    message =  "There's a new *#{alert.type}*"
    message << " for #{alert.project.slug}" if alert.project
    slack_send_message_to message, "#alerts", attachments: [slack_alert_attachment(alert)]
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
houston-core-0.7.0.beta3 templates/new-instance/config/triggers/alerts/slack_when_opened.rb
houston-core-0.7.0.beta2 templates/new-instance/config/triggers/alerts/slack_when_opened.rb
houston-core-0.7.0.beta templates/new-instance/config/triggers/alerts/slack_when_opened.rb
houston-core-0.6.3 templates/new-instance/config/triggers/alerts/slack_when_opened.rb
houston-core-0.6.2 templates/new-instance/config/triggers/alerts/slack_when_opened.rb
houston-core-0.6.1 templates/new-instance/config/triggers/alerts/slack_when_opened.rb
houston-core-0.6.0 templates/new-instance/config/triggers/alerts/slack_when_opened.rb
houston-core-0.5.6 templates/new-instance/config/triggers/alerts/slack_when_opened.rb
houston-core-0.5.5 templates/new-instance/config/triggers/alerts/slack_when_opened.rb
houston-core-0.5.4 templates/new-instance/config/triggers/alerts/slack_when_opened.rb
houston-core-0.5.3 templates/new-instance/config/triggers/alerts/slack_when_opened.rb
houston-core-0.5.2 templates/new-instance/config/triggers/alerts/slack_when_opened.rb
houston-core-0.5.1 templates/new-instance/config/triggers/alerts/slack_when_opened.rb