summaryrefslogtreecommitdiff
path: root/lib/chef/platform/rebooter.rb
Commit message (Collapse)AuthorAgeFilesLines
* Require mixin::shellout where we use itrequire_shelloutTim Smith2018-10-271-0/+1
| | | | | | We're not requiring it here even though we extend it below. Signed-off-by: Tim Smith <tsmith@chef.io>
* fix rebooter for solaris and background rebootsfix-linux-rebooterLamont Granquist2017-10-131-3/+7
| | | | | | closes #5026 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* use rfc exit codesSteven Murawski2017-04-041-2/+1
| | | | Signed-off-by: Steven Murawski <steven.murawski@gmail.com>
* Ensures correct version of shutdown is called when using the reboot resource ↵Christoph2016-12-061-1/+3
| | | | | | | | on Windows (#5596) Use a fixed path to shutdown.exe on windows in Chef::Platform::Rebooter, fixes #5594 Signed-off-by: Christoph Griesshammer <cgriesshammer@gmail.com>
* * define exit codesSteven Murawski2016-05-231-2/+13
| | | | | | | | | | | | * exit code functional specs * audit exit codes * reboot now/reboot failed/reboot pending exit codes * Deal with forked and unforked process and get the right exit code * Reboot Now should really be reboot scheduled * pass exception rather than exit code * updated with sigint and sigterm * support legacy fatal!("", 2) behavior * fixup all fatal! and exit! calls
* autofixing whitespace copsLamont Granquist2016-02-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | 4174 Style/SpaceInsideHashLiteralBraces 1860 Style/SpaceAroundOperators 1336 Style/SpaceInsideBlockBraces 1292 Style/AlignHash 997 Style/SpaceAfterComma 860 Style/SpaceAroundEqualsInParameterDefault 310 Style/EmptyLines 294 Style/IndentationConsistency 267 Style/TrailingWhitespace 238 Style/ExtraSpacing 212 Style/SpaceBeforeBlockBraces 166 Style/MultilineOperationIndentation 144 Style/TrailingBlankLines 120 Style/EmptyLineBetweenDefs 101 Style/IndentationWidth 82 Style/SpaceAroundBlockParameters 40 Style/EmptyLinesAroundMethodBody 29 Style/EmptyLinesAroundAccessModifier 1 Style/RescueEnsureAlignment
* Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* Use double quotes by defaultThom May2016-01-141-3/+3
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* really fix copslcg/really-fix-copsLamont Granquist2016-01-121-6/+6
|
* Correct Windows reboot command to delay in minutesJimmy McCrory2015-07-191-1/+1
| | | | | Correct the command used to reboot Windows machines so that it converts a given delay_mins option to the appropriate number of seconds.
* Re-implement immediate reboot using throw/catch, so all the end-of-runChris Doherty2014-09-101-0/+2
| | | | tasks (e.g. report handlers) still get to run.
* Add #reboot! to Rebooter for immediate rebooting; make Rebooter stateless;Chris Doherty2014-09-101-7/+6
| | | | add specs.
* Elaborate the specs a bit to make sure we're generating the correct reboot ↵Chris Doherty2014-09-101-5/+3
| | | | shell string.
* Chef::Rebooter -> Chef::Platform::RebooterChris Doherty2014-09-101-0/+55