diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-03-30 14:13:16 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2017-03-30 14:13:16 -0700 |
commit | ef2e402cae6d24264fb9cb4acdc4fde3af84ca6d (patch) | |
tree | c1ce11ed516312953e5c7b7942cb91c9291b3f85 /RELEASE_NOTES.md | |
parent | 56b912d1f928abdd7b1e58ba0db8400d1e4b19bf (diff) | |
download | chef-ef2e402cae6d24264fb9cb4acdc4fde3af84ca6d.tar.gz |
add relnotes for nameless resources [ci skip]
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'RELEASE_NOTES.md')
-rw-r--r-- | RELEASE_NOTES.md | 15 |
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). + |