Class: Chef::Resource::CrowbarKeyPair
- Inherits:
-
LWRPBase
- Object
- LWRPBase
- Chef::Resource::CrowbarKeyPair
- Defined in:
- lib/chef/resource/crowbar_key_pair.rb
Instance Method Summary collapse
-
#after(&block) ⇒ Object
Proc that runs after the resource completes.
-
#initialize(*args) ⇒ CrowbarKeyPair
constructor
A new instance of CrowbarKeyPair.
Constructor Details
#initialize(*args) ⇒ CrowbarKeyPair
Returns a new instance of CrowbarKeyPair.
20 21 22 23 |
# File 'lib/chef/resource/crowbar_key_pair.rb', line 20 def initialize(*args) super @driver = run_context..current_driver end |
Instance Method Details
#after(&block) ⇒ Object
Proc that runs after the resource completes. Called with (resource, private_key, public_key)
40 41 42 |
# File 'lib/chef/resource/crowbar_key_pair.rb', line 40 def after(&block) block ? @after = block : @after end |