From ef2e402cae6d24264fb9cb4acdc4fde3af84ca6d Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Thu, 30 Mar 2017 14:13:16 -0700 Subject: add relnotes for nameless resources [ci skip] Signed-off-by: Lamont Granquist --- RELEASE_NOTES.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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). + -- cgit v1.2.1