# File lib/puppet/ssl/host.rb, line 104
104:   def self.search(options = {})
105:     classlist = [options[:for] || [Key, CertificateRequest, Certificate]].flatten
106: 
107:     # Collect the results from each class, flatten them, collect all of the names, make the name list unique,
108:     # then create a Host instance for each one.
109:     classlist.collect { |klass| klass.search }.flatten.collect { |r| r.name }.uniq.collect do |name|
110:       new(name)
111:     end
112:   end