# File lib/puppet/ssl/inventory.rb, line 9 9: def add(cert) 10: cert = cert.content if cert.is_a?(Puppet::SSL::Certificate) 11: 12: # Create our file, if one does not already exist. 13: rebuild unless FileTest.exist?(@path) 14: 15: Puppet.settings.write(:cert_inventory, "a") do |f| 16: f.print format(cert) 17: end 18: end