diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-10-28 21:50:47 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-10-28 21:50:47 -0700 |
commit | ddf24bcbbfed3852fc3c19f739927072a27c1f00 (patch) | |
tree | 4ca425d02a23d52136f4597942548f9cade89d40 /lib/chef/resource/batch.rb | |
parent | 9ccc77bfdadc398e8bec8eaac723df785399e319 (diff) | |
download | chef-ddf24bcbbfed3852fc3c19f739927072a27c1f00.tar.gz |
Turn on unified_mode for 35 core resources
These are the ones that off of the top of my head it should be perfectly
safe to turn on `unifed_mode` with minimal auditing.
Most of these are so old that they do not use any sub-resources at all.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/resource/batch.rb')
-rw-r--r-- | lib/chef/resource/batch.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/resource/batch.rb b/lib/chef/resource/batch.rb index fc8c892a3b..f36a70cd0c 100644 --- a/lib/chef/resource/batch.rb +++ b/lib/chef/resource/batch.rb @@ -21,6 +21,8 @@ require_relative "windows_script" class Chef class Resource class Batch < Chef::Resource::WindowsScript + unified_mode true + provides :batch description "Use the batch resource to execute a batch script using the cmd.exe interpreter on Windows. The batch resource creates and executes a temporary file (similar to how the script resource behaves), rather than running the command inline. Commands that are executed with this resource are (by their nature) not idempotent, as they are typically unique to the environment in which they are run. Use not_if and only_if to guard this resource for idempotence." |