diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-05 14:17:04 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-05 14:31:16 -0700 |
commit | 9e9a408aea747e86385f4d49ef715e9745b6ef50 (patch) | |
tree | 54475fa46a81192db2a8322cfbdca9cbec551987 /lib/chef/resource/dmg_package.rb | |
parent | 174a2748b54a5dbd746005e2aead59221b80f2b9 (diff) | |
download | chef-9e9a408aea747e86385f4d49ef715e9745b6ef50.tar.gz |
lazy procs are instance_exec in the resource already
exposed by Style/SymbolProc mangling some bad code.
no idea how this ever worked.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/resource/dmg_package.rb')
-rw-r--r-- | lib/chef/resource/dmg_package.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/resource/dmg_package.rb b/lib/chef/resource/dmg_package.rb index 3972b7abb9..403716cad7 100644 --- a/lib/chef/resource/dmg_package.rb +++ b/lib/chef/resource/dmg_package.rb @@ -1,6 +1,6 @@ # # Author:: Joshua Timberman (<jtimberman@chef.io>) -# Copyright:: 2011-2018, Chef Software, Inc. +# Copyright:: 2011-2019, Chef Software Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -48,12 +48,12 @@ class Chef property :volumes_dir, String, description: "The directory under /Volumes where the dmg is mounted if it differs from the name of the .dmg file.", - default: lazy(&:app), default_description: "The value passed for the application name." + default: lazy { app }, default_description: "The value passed for the application name." property :dmg_name, String, description: "The name of the .dmg file if it differs from that of the app, or if the name has spaces.", desired_state: false, - default: lazy(&:app), default_description: "The value passed for the application name." + default: lazy { app }, default_description: "The value passed for the application name." property :type, String, description: "The type of package.", |