diff options
author | Chris Doherty <cdoherty@getchef.com> | 2014-09-03 14:11:29 -0700 |
---|---|---|
committer | Chris Doherty <cdoherty@getchef.com> | 2014-09-10 16:34:17 -0700 |
commit | 32f7f6526e07053ba972129883eb016caf3ca731 (patch) | |
tree | 60488e59d5371fec44de3f3fe1aa81e1215133c0 /lib/chef/resource/reboot.rb | |
parent | 494d2b5c32c7295fc4f0c95b0ca01af65f7c80c3 (diff) | |
download | chef-32f7f6526e07053ba972129883eb016caf3ca731.tar.gz |
'timeout' -> 'delay_mins'; add a run_context() shim for RebootPending.
Diffstat (limited to 'lib/chef/resource/reboot.rb')
-rw-r--r-- | lib/chef/resource/reboot.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/resource/reboot.rb b/lib/chef/resource/reboot.rb index 4c683337d5..71c34be891 100644 --- a/lib/chef/resource/reboot.rb +++ b/lib/chef/resource/reboot.rb @@ -28,7 +28,7 @@ class Chef @allowed_actions = [:request, :cancel] @reason = "Reboot by Chef" - @timeout = 0 + @delay_mins = 0 # no default action just now. end @@ -37,8 +37,8 @@ class Chef set_or_return(:reason, arg, :kind_of => String) end - def timeout(arg=nil) - set_or_return(:timeout, arg, :kind_of => Fixnum) + def delay_mins(arg=nil) + set_or_return(:delay_mins, arg, :kind_of => Fixnum) end def timestamp(arg=nil) |