Class: Chef::Resource::ChefClient

Inherits:
Cheffish::ChefActorBase show all
Defined in:
lib/chef/resource/chef_client.rb

Constant Summary

Constants included from Cheffish::BaseProperties

Cheffish::BaseProperties::ArrayType

Instance Method Summary collapse

Methods included from Cheffish::BaseProperties

#initialize

Instance Method Details

#after(&block) ⇒ Object

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



29
30
31
# File 'lib/chef/resource/chef_client.rb', line 29

def after(&block)
  block ? @after = block : @after
end

#before(&block) ⇒ Object

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



24
25
26
# File 'lib/chef/resource/chef_client.rb', line 24

def before(&block)
  block ? @before = block : @before
end