summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-12-18 13:58:00 -0800
committerTim Smith <tsmith@chef.io>2017-12-18 13:58:00 -0800
commit5941e88cb4864bee96b9e4e673fef53de7f4b332 (patch)
tree5fd8707d6923c720f93c7c60002fd0b381f10ac7
parente58fec5cb80b212bb4900954a23d5f7b0a0c4570 (diff)
downloadchef-resource_provider_magic.tar.gz
Update lazy usage per code reviewresource_provider_magic
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/cookbook_file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/cookbook_file.rb b/lib/chef/resource/cookbook_file.rb
index 497b72aac7..f58ad786fc 100644
--- a/lib/chef/resource/cookbook_file.rb
+++ b/lib/chef/resource/cookbook_file.rb
@@ -29,7 +29,7 @@ class Chef
resource_name :cookbook_file
- property :source, [ String, Array ], default: lazy { |r| ::File.basename(r.name) }
+ property :source, [ String, Array ], default: lazy { ::File.basename(name) }
property :cookbook, String
default_action :create