diff options
author | Bryan McLellan <btm@loftninjas.org> | 2014-03-06 17:40:08 -0500 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2014-03-06 17:40:08 -0500 |
commit | 1dd32a6f91b9c1d348b999466a5727250c27d842 (patch) | |
tree | f3c3b1c032d75fbf0a3fbce5b030195eda118fbd /RELEASE_NOTES.md | |
parent | 96fd98a8a7dd3ccbad557a97995b0803d0f26061 (diff) | |
download | chef-1dd32a6f91b9c1d348b999466a5727250c27d842.tar.gz |
CHEF-5086: Add CHANGELOG and RELEASE_NOTES for reboot_pending?
Diffstat (limited to 'RELEASE_NOTES.md')
-rw-r--r-- | RELEASE_NOTES.md | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 6c1c5bcb0f..cf776296b2 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -8,7 +8,18 @@ Details about the thing that changed that needs to get included in the Release N --> # Chef Client Release Notes: -* CHEF-4773: add ruby-shadow support to Mac and FreeBSD distros -* Service Provider for MacOSX now supports `enable` and `disable` +#### reboot_pending? + +We have added a ```reboot_pending?``` method to the recipe DSL. This method returns true or false if the operating system +has a rebooting pending due to updates and a reboot being necessary to complete the installation. It does not report if a reboot has been requested, e.g. if someone has scheduled a restart using shutdown. It currently supports Windows and Ubuntu Linux. + +``` +Chef::Log.warn "There is a pending reboot, which will affect this Chef run" if reboot_pending? + +execute "Install Application" do + command 'C:\application\setup.exe' + not_if { reboot_pending? } +end +``` # Chef Client Breaking Changes: |