diff options
Diffstat (limited to 'lib/chef/resource/dsc_resource.rb')
-rw-r--r-- | lib/chef/resource/dsc_resource.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/chef/resource/dsc_resource.rb b/lib/chef/resource/dsc_resource.rb index 95ee32c946..f6c9468558 100644 --- a/lib/chef/resource/dsc_resource.rb +++ b/lib/chef/resource/dsc_resource.rb @@ -55,7 +55,6 @@ class Chef super @properties = ToTextHash.new @resource = nil - @reboot_action = :nothing end def resource(value = nil) @@ -105,13 +104,7 @@ class Chef # If the set method of the DSC resource indicate that a reboot # is necessary, reboot_action provides the mechanism for a reboot to # be requested. - def reboot_action(value = nil) - if value - @reboot_action = value - else - @reboot_action - end - end + property :reboot_action, Symbol, default: :nothing, equal_to: [:nothing, :reboot_now, :request_reboot] def timeout(arg = nil) set_or_return( |