# File lib/chef/provider/service.rb, line 51 def define_resource_requirements requirements.assert(:reload) do |a| a.assertion { @new_resource.supports[:reload] || @new_resource.reload_command } a.failure_message Chef::Exceptions::UnsupportedAction, "#{self.to_s} does not support :reload" # if a service is not declared to support reload, that won't # typically change during the course of a run - so no whyrun # alternative here. end end