diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-03-30 12:24:56 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2017-03-30 12:24:56 -0700 |
commit | de209e6ee12939f641ec0ed002c2d3506abaafe7 (patch) | |
tree | 0a6b37f0519a71444250c5ffd84d3df89649228d /lib/chef/dsl | |
parent | 5584126a725ab72c24ea610328f56a905986295b (diff) | |
download | chef-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.rb | 8 |
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) |