Skip to content

Commit

Permalink
Document passing an array to exec creates
Browse files Browse the repository at this point in the history
This is probably not what most people would expect...
  • Loading branch information
yakatz authored Nov 22, 2023
1 parent f3ffd8a commit 308d4dd
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 308d4dd

Please sign in to comment.