Module: Chef::Platform::ServiceHelpers
- Extended by:
- ServiceHelpers
- Includes:
- Mixin::ChefUtilsWiring, ChefUtils::DSL::Service
- Included in:
- ServiceHelpers, Chef::Provider::Service, Chef::Provider::Service, Resource::Service, Resource::Service
- Defined in:
- lib/chef/platform/service_helpers.rb
Instance Method Summary collapse
Instance Method Details
#config_for_service(service_name) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/chef/platform/service_helpers.rb', line 42 def config_for_service(service_name) configs = [] configs << :initd if service_script_exist?(:initd, service_name) configs << :upstart if service_script_exist?(:upstart, service_name) configs << :xinetd if service_script_exist?(:xinetd, service_name) configs << :systemd if service_script_exist?(:systemd, service_name) configs << :etc_rcd if service_script_exist?(:etc_rcd, service_name) configs end |
#service_resource_providers ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/chef/platform/service_helpers.rb', line 29 def service_resource_providers providers = [] providers << :debian if debianrcd? providers << :invokercd if invokercd? providers << :upstart if upstart? providers << :insserv if insserv? providers << :systemd if systemd? providers << :redhat if redhatrcd? providers end |