examples: lang: Improve reverse example

It's cool to show just the mode changes.
This commit is contained in:
James Shubin
2020-01-12 17:42:20 -05:00
parent 579975f08d
commit 3d4b345728

View File

@@ -16,9 +16,10 @@ file "/tmp/mgmt/" {
# file should change the mode every four seconds # file should change the mode every four seconds
# editing the file contents at anytime is allowed # editing the file contents at anytime is allowed
# you should create the file before you run this
if $mod { if $mod {
file "/tmp/mgmt/hello" { file "/tmp/mgmt/hello" {
state => "exists", #state => "exists", # omit to see it change the mode only!
mode => "0777", mode => "0777",
Meta:reverse => true, Meta:reverse => true,