summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-12-20 15:22:32 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-12-20 15:22:32 -0800
commit13fe34683ae307e563be4acce004b2681b302ce4 (patch)
treea3b89623dfc8a84e550a81be5d61dd57b8478f01
parent6f593e160180d226b840856776a284b6081f8424 (diff)
downloadchef-13fe34683ae307e563be4acce004b2681b302ce4.tar.gz
formally deprecate run_command
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/deprecated.rb10
-rw-r--r--lib/chef/mixin/command.rb1
2 files changed, 11 insertions, 0 deletions
diff --git a/lib/chef/deprecated.rb b/lib/chef/deprecated.rb
index 3a988fdfa3..5b0bac552e 100644
--- a/lib/chef/deprecated.rb
+++ b/lib/chef/deprecated.rb
@@ -166,6 +166,16 @@ class Chef
end
end
+ class RunCommand < Base
+ def id
+ 14
+ end
+
+ def target
+ "run_command.html"
+ end
+ end
+
class ResourceCloning < Base
def id
3694
diff --git a/lib/chef/mixin/command.rb b/lib/chef/mixin/command.rb
index 0cc3143ec7..269f1d1194 100644
--- a/lib/chef/mixin/command.rb
+++ b/lib/chef/mixin/command.rb
@@ -107,6 +107,7 @@ class Chef
end
def output_of_command(command, args)
+ Chef.deprecated(:run_command, "Chef::Mixin::Command.run_command is deprecated, please use shell_out")
Chef::Log.debug("Executing #{command}")
stderr_string, stdout_string, status = "", "", nil