class Localhost::Authority
def self.list(root = self.path)
def self.list(root = self.path) return to_enum(:list) unless block_given? Dir.glob("*.crt", base: root) do |path| name = File.basename(path, ".crt") authority = self.new(name, root: root) if authority.load yield authority end end end