Method: Chef::Provider::Service::Openbsd#initialize
- Defined in:
- lib/chef/provider/service/openbsd.rb
#initialize(new_resource, run_context) ⇒ Openbsd
Returns a new instance of Openbsd.
34 35 36 37 38 39 40 |
# File 'lib/chef/provider/service/openbsd.rb', line 34 def initialize(new_resource, run_context) super @rc_conf = ::File.read(RC_CONF_PATH) rescue "" @rc_conf_local = ::File.read(RC_CONF_LOCAL_PATH) rescue "" @init_command = ::File.exist?(rcd_script_path) ? rcd_script_path : nil new_resource.status_command("#{default_init_command} check") end |