summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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