lib/puppet/indirector/key/file.rb
# Save the public key, in addition to the private key.
Save the public key, in addition to the private key.
Save the public key in addition to the private key .
def save(request)
    super
    begin
      Puppet.settings.writesub(:publickeydir, public_key_path(request.key)) { |f| f.print request.instance.content.public_key.to_pem }
    rescue => detail
      raise Puppet::Error, "Could not write #{request.key}: #{detail}"
    end
  end
def save ( request ) super begin Puppet . settings . writesub ( :publickeydir , public_key_path ( request . key ) ) { | f | f . print request . instance . content . public_key . to_pem } rescue => detail raise Puppet :: Error , "Could not write #{request.key}: #{detail}" end end
Save the public key, in addition to the private key.
Save the public key in addition to the private key .
request
<not_specific>