Zuehlke / cookbook-windev

One cookbook with resources for setting up a Windows development environment
MIT License
7 stars 1 forks source link

Fix Resource Cloning warnings #29

Closed tknerr closed 7 years ago

tknerr commented 7 years ago

use unique resource name to get rid of resource cloning deprecation warnings (see https://docs.chef.io/deprecations_resource_cloning.html)

Before this PR you would get these warnings at the end of the chef run:

Deprecated features used!
  Cloning resource attributes for ruby_block[installer_exists] from prior resource
Previous ruby_block[installer_exists]: C:/repos/jsm/tools/infrastructure/windows_development/.chef/cache/cookbooks/windev/recipes/packages.rb:36:in `block in from_file'
Current  ruby_block[installer_exists]: C:/repos/jsm/tools/infrastructure/windows_development/.chef/cache/cookbooks/windev/recipes/packages.rb:36:in `block in from_file' at 1 location:
    - C:/repos/jsm/tools/infrastructure/windows_development/.chef/cache/cookbooks/windev/recipes/packages.rb:36:in `block in from_file'
   See https://docs.chef.io/deprecations_resource_cloning.html for further details.

With this PR these are gone ;)