summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-07-16 13:25:56 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-07-16 13:25:56 -0700
commit7d8660c67f2a48bc5623a258bdfa58b0a5ad6180 (patch)
tree8e84cc29e6ebf7a8548f7461f5bf7bd95e628b16
parent8f5f1cea9116cb3e99c3d523ffb8e945406ab731 (diff)
downloadchef-lcg/shell-out-regression.tar.gz
add back clean_array APIlcg/shell-out-regression
broke public API that habitat package cookbook was using, so add this back but make it deprecated. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/mixin/shell_out.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/chef/mixin/shell_out.rb b/lib/chef/mixin/shell_out.rb
index f38c6e262d..25a8ee989c 100644
--- a/lib/chef/mixin/shell_out.rb
+++ b/lib/chef/mixin/shell_out.rb
@@ -168,6 +168,11 @@ class Chef
options
end
+ def clean_array(*args)
+ Chef.deprecated(:shell_out, "do not call clean_array directly, just use shell_out with splat args or an array")
+ Chef::Mixin::ShellOut.clean_array(*args)
+ end
+
private
# this SHOULD be used for setting up expectations in rspec, see banner comment at top.