Sha256: b2ff4b9d2e27336642a847d6455a83b039ec9a6b136a1dd4d2e44e5f1a4a5d23

Contents?: true

Size: 920 Bytes

Versions: 3

Compression:

Stored size: 920 Bytes

Contents

Houston.config do
  on "daemon:scheduler:restart" => "daemon:announce-scheduler-restarted-in-slack" do
    slack_send_message_to "The thread running Rufus::Scheduler errored out and is attempting to recover", "general"
  end

  on "daemon:scheduler:stop" => "daemon:announce-scheduler-stopped-in-slack" do
    slack_send_message_to ":rotating_light: The thread running Rufus::Scheduler has terminated", "general"
  end

  on "daemon:slack:restart" => "daemon:announce-slack-restarted-in-slack" do
    slack_send_message_to "The thread running Slack errored out and is attempting to recover", "general"
  end

  on "daemon:slack:stop" => "daemon:announce-slack-stopped-in-slack" do
    slack_send_message_to ":rotating_light: The thread running Slack has terminated", "general"
  end

  on "slack:error" => "slack:announce-error-in-slack" do
    slack_send_message_to "An error occurred\n#{message}", "general"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
houston-core-0.8.0.pre templates/new-instance/config/events/daemons/health.rb
houston-core-0.7.0 templates/new-instance/config/events/daemons/health.rb
houston-core-0.7.0.beta4 templates/new-instance/config/events/daemons/health.rb