diff options
author | John Keiser <john@johnkeiser.com> | 2015-06-05 10:48:29 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-06-08 09:01:54 -0700 |
commit | 8f17f5223727cb9bec3c44b66a3fbe327b7a2f19 (patch) | |
tree | 05cebef51365af906081bc1430c6c15d048a7b40 /lib/chef/dsl | |
parent | 8d4e9d44995d6f7de5a0b681616ed8241e39ece3 (diff) | |
download | chef-8f17f5223727cb9bec3c44b66a3fbe327b7a2f19.tar.gz |
Make use_automatic_resource_name automatic
Diffstat (limited to 'lib/chef/dsl')
-rw-r--r-- | lib/chef/dsl/resources.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/dsl/resources.rb b/lib/chef/dsl/resources.rb index a181c3be33..1ce12ed0a0 100644 --- a/lib/chef/dsl/resources.rb +++ b/lib/chef/dsl/resources.rb @@ -15,6 +15,7 @@ class Chef end EOM rescue SyntaxError + # Handle the case where dsl_name has spaces, etc. define_method(dsl_name.to_sym) do |name=nil, created_at=nil, &block| declare_resource(dsl_name, name, created_at || caller[0], &block) end |