summaryrefslogtreecommitdiff
path: root/lib/chef/resource/reboot.rb
diff options
context:
space:
mode:
authorChris Doherty <cdoherty@getchef.com>2014-09-12 14:02:44 -0700
committerChris Doherty <cdoherty@getchef.com>2014-09-12 14:02:44 -0700
commitb6cc74645ead494c35d1ea4ecac1ce039fcd02b4 (patch)
treef87a68dde2bd60cb4c9821f853b732f3afb63778 /lib/chef/resource/reboot.rb
parentb35e001755d9eaa78092f937dfa94002ef9ec349 (diff)
downloadchef-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.rb7
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)