diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-01-22 11:41:11 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-01-22 11:41:11 -0800 |
commit | e32c1733567455dc6f3ce0f702d981f261413b90 (patch) | |
tree | e445572574b7c4897a869c84a1c2e77c0bb89e4a /lib/chef/resource/file.rb | |
parent | 9439fd6e5da8d87f48ebc1b6de4b7c09c8654c39 (diff) | |
download | chef-e32c1733567455dc6f3ce0f702d981f261413b90.tar.gz |
Convert node map to last-writer-wins for ties
We still bind preferentially by specificity, but for ties with
specificity we now prefer last-writer-wins instead of the alphabetic
by class name method we had before (that was never documented and I'm
pretty certain nobody understood).
So now `provides(:whatever) { true }` in a cookbook should always win
over core.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/resource/file.rb')
-rw-r--r-- | lib/chef/resource/file.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/file.rb b/lib/chef/resource/file.rb index 43d9c57150..787992fc24 100644 --- a/lib/chef/resource/file.rb +++ b/lib/chef/resource/file.rb @@ -1,7 +1,7 @@ # # Author:: Adam Jacob (<adam@chef.io>) # Author:: Seth Chisamore (<schisamo@chef.io>) -# Copyright:: Copyright 2008-2016 Chef Software, Inc. +# Copyright:: Copyright 2008-2018, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); |