Class: Chef::Provider::Service::Invokercd

Inherits:
Init show all
Defined in:
lib/chef/provider/service/invokercd.rb

Direct Known Subclasses

Debian

Instance Attribute Summary

Attributes inherited from Chef::Provider

#current_resource, #new_resource, #run_context

Instance Method Summary collapse

Methods inherited from Init

#reload_service, #restart_service, #start_service, #stop_service

Methods inherited from Simple

#load_current_resource, #ps_cmd, #reload_service, #restart_service, #start_service, #stop_service

Methods inherited from Chef::Provider::Service

#action_disable, #action_enable, #action_reload, #action_restart, #action_start, #action_stop, #disable_service, #enable_service, #reload_service, #restart_service, #start_service, #stop_service

Methods included from Mixin::Command

#chdir_or_tmpdir, #handle_command_failures, #output_of_command, #run_command, #run_command_with_systems_locale

Methods included from Mixin::Command::Windows

#popen4

Methods included from Mixin::Command::Unix

#popen4

Methods inherited from Chef::Provider

#action_nothing, build_from_file, #cookbook_name, #load_current_resource, #node, #resource_collection

Methods included from Mixin::ConvertToClassName

#convert_to_class_name, #convert_to_snake_case, #filename_to_qualified_string, #snake_case_basename

Methods included from Mixin::RecipeDefinitionDSLCore

#method_missing

Methods included from Mixin::Language

#data_bag, #data_bag_item, #platform?, #search, #value_for_platform

Constructor Details

#initialize(new_resource, run_context) ⇒ Invokercd

Returns a new instance of Invokercd.



28
29
30
31
# File 'lib/chef/provider/service/invokercd.rb', line 28

def initialize(new_resource, run_context)
  super
  @init_command = "/usr/sbin/invoke-rc.d #{@new_resource.service_name}"
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Chef::Mixin::RecipeDefinitionDSLCore