You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: dsc_resource.rb
    path of file: ./repos/chef/lib/chef/provider
    
    the code of the file until where you have to start completion: #
# Author:: Adam Edwards (<adamed@chef.io>)
#
# Copyright:: Copyright (c) Chef Software Inc.
#
# Licensed under the 
    
      def reboot_if_required
        reboot_action = new_resource.reboot_action
        unless @reboot_resource.nil?
          case reboot_action
          when :nothing
            logger.trace("A reboot was requested by the DSC resource, but reboot_action is :nothing.")
            logger.trace("This dsc_resource will not reboot the node.")
          else
            logger.trace("Requesting node reboot with #{reboot_action}.")
            @reboot_resource.run_action(reboot_action)
          end