Class: Chef::Resource::CrowbarKeyPair

Inherits:
LWRPBase
  • Object
show all
Defined in:
lib/chef/resource/crowbar_key_pair.rb

Instance Method Summary collapse

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.chef_metal.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