summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2017-03-30 14:13:16 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2017-03-30 14:13:16 -0700
commitef2e402cae6d24264fb9cb4acdc4fde3af84ca6d (patch)
treec1ce11ed516312953e5c7b7942cb91c9291b3f85
parent56b912d1f928abdd7b1e58ba0db8400d1e4b19bf (diff)
downloadchef-ef2e402cae6d24264fb9cb4acdc4fde3af84ca6d.tar.gz
add relnotes for nameless resources [ci skip]
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--RELEASE_NOTES.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 4e3c7dd050..a1e5ceab45 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -142,3 +142,18 @@ available in the [`poise-python`](https://github.com/poise/poise-python) cookboo
We've upgraded to the latest stable release of the Ruby programming
language.
+
+### Resource can now declare a default name
+
+The core `apt_update` resource can now be declared without any name argument, no need for `apt_update "this string doesn't matter but
+why do i have to type it?"`.
+
+This can be used by any other resource by just overriding the name property and supplying a default:
+
+```ruby
+ property :name, String, default: ""
+```
+
+Notifications to resources with empty strings as their name is also supported via either the bare resource name (`apt_update` --
+matches what the user types in the DSL) or with empty brackets (`apt_update[]` -- matches the resource notification pattern).
+