Skip to content

Commit a62d774

Browse files
authored
Merge pull request #9167 from yakatz/patch-1
Document passing an array to exec creates
2 parents 5503fe2 + 308d4dd commit a62d774

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/puppet/type/exec.rb

+8
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,14 @@ def check(value)
436436
back by re-extracting the tarball. If `important.tar` does **not**
437437
actually contain `myfile`, the exec will keep running every time
438438
Puppet runs.
439+
440+
This parameter can also take an array of files and the command will
441+
not run if **any** of these files exist. For example:
442+
443+
creates => ['/tmp/file1', '/tmp/file2'],
444+
445+
will only run the command if both files don't exist.
446+
439447
EOT
440448

441449
accept_arrays

0 commit comments

Comments
 (0)