File: notify.eye

package info (click to toggle)
ruby-eye 0.7-5.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 672 kB
  • sloc: ruby: 5,003; makefile: 3
file content (19 lines) | stat: -rw-r--r-- 323 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Notify example

Eye.config do
  mail :host => "mx.some.host", :port => 25, :domain => "some.host"
  contact :errors, :mail, 'error@some.host'
  contact :dev, :mail, 'dev@some.host'
end

Eye.application :some do
  notify :errors

  process :some_process do
    notify :dev, :info
    pid_file "1.pid"

    #...
  end

end