Class: Chef::Resource::ChefUser

Inherits:
Cheffish::ChefActorBase show all
Defined in:
lib/chef/resource/chef_user.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)



36
37
38
# File 'lib/chef/resource/chef_user.rb', line 36

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

#before(&block) ⇒ Object

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



31
32
33
# File 'lib/chef/resource/chef_user.rb', line 31

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