Class: Chef::Provider::ChefClient

Inherits:
Cheffish::ActorProviderBase show all
Defined in:
lib/chef/provider/chef_client.rb

Instance Method Summary collapse

Methods inherited from Cheffish::ActorProviderBase

#augment_new_json, #create_actor, #delete_actor, #load_current_resource, #new_public_key

Methods inherited from Cheffish::ChefProviderBase

#apply_modifiers, #apply_run_list_modifiers, #augment_current_json, #augment_new_json, #current_json, #current_resource_exists?, #json_differences, #json_differences_internal, #json_to_resource, #new_json, #normalize, #normalize_for_post, #normalize_for_put, #not_found_resource, #resource_to_json, #rest, #same_run_list_item

Instance Method Details

#actor_pathObject



18
19
20
# File 'lib/chef/provider/chef_client.rb', line 18

def actor_path
  'clients'
end

#actor_typeObject



14
15
16
# File 'lib/chef/provider/chef_client.rb', line 14

def actor_type
  'client'
end

#data_handlerObject



38
39
40
# File 'lib/chef/provider/chef_client.rb', line 38

def data_handler
  Chef::ChefFS::DataHandler::ClientDataHandler.new
end

#keysObject



42
43
44
45
46
47
48
49
# File 'lib/chef/provider/chef_client.rb', line 42

def keys
  {
    'name' => :name,
    'admin' => :admin,
    'validator' => :validator,
    'public_key' => :source_key
  }
end

#resource_classObject

Helpers



34
35
36
# File 'lib/chef/provider/chef_client.rb', line 34

def resource_class
  Chef::Resource::ChefClient
end

#whyrun_supported?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/chef/provider/chef_client.rb', line 10

def whyrun_supported?
  true
end