summaryrefslogtreecommitdiff
path: root/lib/chef/dsl
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2017-03-30 12:24:56 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2017-03-30 12:24:56 -0700
commitde209e6ee12939f641ec0ed002c2d3506abaafe7 (patch)
tree0a6b37f0519a71444250c5ffd84d3df89649228d /lib/chef/dsl
parent5584126a725ab72c24ea610328f56a905986295b (diff)
downloadchef-de209e6ee12939f641ec0ed002c2d3506abaafe7.tar.gz
make nameless properties opt-in
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/dsl')
-rw-r--r--lib/chef/dsl/resources.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/dsl/resources.rb b/lib/chef/dsl/resources.rb
index 4baec22f2e..638e626ae2 100644
--- a/lib/chef/dsl/resources.rb
+++ b/lib/chef/dsl/resources.rb
@@ -34,10 +34,10 @@ class Chef
def self.add_resource_dsl(dsl_name)
module_eval(<<-EOM, __FILE__, __LINE__ + 1)
- def #{dsl_name}(arg = "", &block)
- declare_resource(#{dsl_name.inspect}, arg, created_at: caller[0], &block)
- end
- EOM
+ def #{dsl_name}(args = nil, &block)
+ declare_resource(#{dsl_name.inspect}, args, created_at: caller[0], &block)
+ end
+ EOM
end
def self.remove_resource_dsl(dsl_name)