summaryrefslogtreecommitdiff
path: root/lib/chef/shell_out.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/shell_out.rb')
-rw-r--r--lib/chef/shell_out.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/chef/shell_out.rb b/lib/chef/shell_out.rb
new file mode 100644
index 0000000000..3febe366bd
--- /dev/null
+++ b/lib/chef/shell_out.rb
@@ -0,0 +1,13 @@
+require 'mixlib/shellout'
+
+class Chef
+ class ShellOut < Mixlib::ShellOut
+
+ def initialize(*args)
+ Chef::Log.warn("Chef::ShellOut is deprecated, please use Mixlib::ShellOut")
+ called_from = caller[0..3].inject("Called from:\n") {|msg, trace_line| msg << " #{trace_line}\n" }
+ Chef::Log.warn(called_from)
+ super
+ end
+ end
+end