File: notify.pp

package info (click to toggle)
ruby-rspec-puppet 4.0.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,444 kB
  • sloc: ruby: 6,377; makefile: 6
file content (30 lines) | stat: -rw-r--r-- 541 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
class relationships::notify {
  notify { 'foo':
    notify => Notify['bar']
  }

  notify { 'bar':
    subscribe => Notify['baz'],
  }

  notify { 'baz': }
  notify { 'gronk': }

  Notify['gronk'] <~ Notify['baz']

  class { '::relationships::notify::pre': } ~>
  class { '::relationships::notify::middle': } ~>
  class { '::relationships::notify::post': }
}

class relationships::notify::pre {
  notify { 'pre': }
}

class relationships::notify::middle {
  notify { 'middle': }
}

class relationships::notify::post {
  notify { 'post': }
}