File: init.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 (12 lines) | stat: -rw-r--r-- 213 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
class boolean_test($bool) {
  $real_bool = $bool ? {
    true => false,
    false => true,
  }

  if ($real_bool) {
    notify {"bool testing":
      message => "This will print when \$bool is false."
    }
  }
}