diff options
author | James Turnbull <james@lovedthanlost.net> | 2008-03-18 03:12:18 +1100 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-03-20 11:31:13 -0500 |
commit | 4cc18ed43637efa9064a302b76d8565c0f706ebe (patch) | |
tree | 83fd61398f1eefc5f85d31b3754a8d981018f014 /lib | |
parent | 2795ba47ccb25ec0a081f1d2b4ef6f2de4ccaf94 (diff) | |
download | puppet-4cc18ed43637efa9064a302b76d8565c0f706ebe.tar.gz puppet-4cc18ed43637efa9064a302b76d8565c0f706ebe.tar.xz puppet-4cc18ed43637efa9064a302b76d8565c0f706ebe.zip |
Applied patch in #1134
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/puppet/type/exec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/puppet/type/exec.rb b/lib/puppet/type/exec.rb index 2772b54a8..d7c3a8a39 100755 --- a/lib/puppet/type/exec.rb +++ b/lib/puppet/type/exec.rb @@ -390,6 +390,11 @@ module Puppet Note that this command follows the same rules as the main command, which is to say that it must be fully qualified if the path is not set. + + Also note that onlyif can take an array as its value, eg: + onlyif => [\"test -f /tmp/file1\", \"test -f /tmp/file2\"] + + This will only run the exec if /all/ conditions in the array return true. " validate do |cmds| |