Class: Chef::Resource::FogKeyPair

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ FogKeyPair

Returns a new instance of FogKeyPair.



6
7
8
9
# File 'lib/chef/resource/fog_key_pair.rb', line 6

def initialize(*args)
  super
  @driver = run_context.chef_provisioning.current_driver
end

Instance Method Details

#after(&block) ⇒ Object

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



26
27
28
# File 'lib/chef/resource/fog_key_pair.rb', line 26

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

#load_prior_resource(*_args) ⇒ Object

We are not interested in Chef’s cloning behavior here.



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

def load_prior_resource(*_args)
  Chef::Log.debug("Overloading #{resource_name}.load_prior_resource with NOOP")
end