File: README.md

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 (15 lines) | stat: -rw-r--r-- 472 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Eye Plugin Example
------------------

This plugin adds reactor which try to reads command from file "/tmp/cmd.txt" every 1.second (then execute it and delete file). Also plugin add trigger to save every process state transition into "/tmp/saver.log".

To test it:

    bundle exec eye l examples/plugin/main.eye
    tail -f /tmp/eye.log
    tail -f /tmp/saver.log
    echo 'restart' > /tmp/cmd.txt

Also, here http example of gem:

    https://github.com/kostya/eye-http