diff options
author | Chris Doherty <cdoherty@getchef.com> | 2014-09-12 14:02:44 -0700 |
---|---|---|
committer | Chris Doherty <cdoherty@getchef.com> | 2014-09-12 14:02:44 -0700 |
commit | b6cc74645ead494c35d1ea4ecac1ce039fcd02b4 (patch) | |
tree | f87a68dde2bd60cb4c9821f853b732f3afb63778 /lib/chef/resource/reboot.rb | |
parent | b35e001755d9eaa78092f937dfa94002ef9ec349 (diff) | |
download | chef-b6cc74645ead494c35d1ea4ecac1ce039fcd02b4.tar.gz |
Improve the action and throw-label names.
Diffstat (limited to 'lib/chef/resource/reboot.rb')
-rw-r--r-- | lib/chef/resource/reboot.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/chef/resource/reboot.rb b/lib/chef/resource/reboot.rb index 44c04d25dc..d6caafdea8 100644 --- a/lib/chef/resource/reboot.rb +++ b/lib/chef/resource/reboot.rb @@ -18,6 +18,9 @@ require 'chef/resource' +# In using this resource via notifications, it's important to *only* use +# immediate notifications. Delayed notifications produce unintuitive and +# probably undesired results. class Chef class Resource class Reboot < Chef::Resource @@ -25,12 +28,12 @@ class Chef super @resource_name = :reboot @provider = Chef::Provider::Reboot - @allowed_actions = [:request_reboot_on_successful_run, :reboot_interrupt_run, :cancel] + @allowed_actions = [:request_reboot, :reboot_now, :cancel] @reason = "Reboot by Chef" @delay_mins = 0 - # no default action just now. + # no default action. end def reason(arg=nil) |