class Chef::Resource::ChefClient

Public Instance Methods

actor_path() click to toggle source
# File lib/chef/resource/chef_client.rb, line 46
def actor_path
  "clients"
end
actor_type() click to toggle source
# File lib/chef/resource/chef_client.rb, line 42
def actor_type
  "client"
end
after(&block) click to toggle source

Proc that runs after the resource completes. Called with (resource, json, private_key, public_key)

# File lib/chef/resource/chef_client.rb, line 29
def after(&block)
  block ? @after = block : @after
end
before(&block) click to toggle source

Proc that runs just before the resource executes. Called with (resource)

# File lib/chef/resource/chef_client.rb, line 24
def before(&block)
  block ? @before = block : @before
end
data_handler() click to toggle source
# File lib/chef/resource/chef_client.rb, line 58
def data_handler
  Chef::ChefFS::DataHandler::ClientDataHandler.new
end
keys() click to toggle source
# File lib/chef/resource/chef_client.rb, line 62
def keys
  {
    "name" => :chef_client_name,
    "admin" => :admin,
    "validator" => :validator,
    "public_key" => :source_key,
  }
end
resource_class() click to toggle source

Helpers

# File lib/chef/resource/chef_client.rb, line 54
def resource_class
  Chef::Resource::ChefClient
end