class Chef::Resource::FogKeyPair

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/chef/resource/fog_key_pair.rb, line 6
def initialize(*args)
  super
  @driver = run_context.chef_provisioning.current_driver
end

Public Instance Methods

after(&block) click to toggle source

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

# File lib/chef/resource/fog_key_pair.rb, line 26
def after(&block)
  block ? @after = block : @after
end
load_prior_resource(*_args) click to toggle source

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

# 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