Method: Chef::Provider::Service::Openbsd#load_current_resource
- Defined in:
- lib/chef/provider/service/openbsd.rb
#load_current_resource ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/chef/provider/service/openbsd.rb', line 42 def load_current_resource supports[:status] = true if supports[:status].nil? @current_resource = Chef::Resource::Service.new(new_resource.name) current_resource.service_name(new_resource.service_name) logger.trace("#{current_resource} found at #{init_command}") determine_current_status! determine_enabled_status! current_resource end |