File: 2013-01-20.notifications

package info (click to toggle)
cdist 7.0.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,992 kB
  • sloc: sh: 16,815; python: 9,199; makefile: 344; awk: 261
file content (20 lines) | stat: -rw-r--r-- 599 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Allow cross-type communication

Sending notifications is possible from

    - manifest
    - gencode-local
    - gencode-remote

Sending a notification from an object means writing to the file "notifications" into
its object:

    echo mytest >> "$__object/notifications" # a type reports something

Reading / Reacting on notifications works by accessing the file
referred to be "$__notifications". All notifications are prefixed with
the object name ($__object_name) and are appended into this file.

To find out, whether a file was copied, run:

    grep __file/etc/passwd:copy "$__notifications"