From 96b3a203c064373f7b71598da3e75c1c71fa3b18 Mon Sep 17 00:00:00 2001 From: Nolan Davidson Date: Thu, 11 Sep 2014 10:58:21 -0400 Subject: Added exec method to Recipe, addressing Issue 1689 --- lib/chef/dsl/recipe.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/chef/dsl/recipe.rb') diff --git a/lib/chef/dsl/recipe.rb b/lib/chef/dsl/recipe.rb index 3282320b8c..e0109f0bc2 100644 --- a/lib/chef/dsl/recipe.rb +++ b/lib/chef/dsl/recipe.rb @@ -162,6 +162,10 @@ class Chef end end + def exec(args) + raise Chef::Exceptions::NoSuchResourceType.new "exec was called, but you probably meant to use an execute resource. If not, please call Kernel#exec explicitly" + end + end end end -- cgit v1.2.1