summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNolan Davidson <nolan.davidson@gmail.com>2014-09-11 10:58:21 -0400
committerNolan Davidson <nolan.davidson@gmail.com>2014-09-11 11:10:45 -0400
commit96b3a203c064373f7b71598da3e75c1c71fa3b18 (patch)
tree8b9a611264b8aba5de5ad94945d654c7ba85f264 /lib
parentde47c1d65ffc7dc52a6d63a3b415dd23bdda31ae (diff)
downloadchef-96b3a203c064373f7b71598da3e75c1c71fa3b18.tar.gz
Added exec method to Recipe, addressing Issue 1689
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/dsl/recipe.rb4
1 files changed, 4 insertions, 0 deletions
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