Skip to content

Commit

Permalink
Merge pull request #9167 from yakatz/patch-1
Browse files Browse the repository at this point in the history
Document passing an array to exec creates
  • Loading branch information
joshcooper authored Apr 10, 2024
2 parents 5503fe2 + 308d4dd commit a62d774
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/puppet/type/exec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,14 @@ def check(value)
back by re-extracting the tarball. If `important.tar` does **not**
actually contain `myfile`, the exec will keep running every time
Puppet runs.
This parameter can also take an array of files and the command will
not run if **any** of these files exist. For example:
creates => ['/tmp/file1', '/tmp/file2'],
will only run the command if both files don't exist.
EOT

accept_arrays
Expand Down

0 comments on commit a62d774

Please sign in to comment.