Class: Chef::Resource::ChefClient
- Inherits:
-
Cheffish::ChefActorBase
- Object
- Chef::Resource
- Cheffish::BaseResource
- Cheffish::ChefActorBase
- Chef::Resource::ChefClient
- Defined in:
- lib/chef/resource/chef_client.rb
Constant Summary
Constants included from Cheffish::BaseProperties
Cheffish::BaseProperties::ArrayType
Instance Method Summary collapse
-
#after(&block) ⇒ Object
Proc that runs after the resource completes.
-
#before(&block) ⇒ Object
Proc that runs just before the resource executes.
Methods included from Cheffish::BaseProperties
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 |