# File lib/chef/provider/service/windows.rb, line 32 def load_current_resource @current_resource = Chef::Resource::Service.new(@new_resource.name) @current_resource.service_name(@new_resource.service_name) @current_resource.running(current_state == RUNNING) Chef::Log.debug "#{@new_resource} running: #{@current_resource.running}" @current_resource.enabled(start_type == AUTO_START) Chef::Log.debug "#{@new_resource} enabled: #{@current_resource.enabled}" @current_resource end