# File lib/puppet/application/cert.rb, line 48
48:   def main
49:     if @all
50:       hosts = :all
51:     elsif @signed
52:       hosts = :signed
53:     else
54:       hosts = command_line.args.collect { |h| h.downcase }
55:     end
56:     begin
57:       @ca.apply(:revoke, :to => hosts) if @cert_mode == :destroy
58:       @ca.apply(@cert_mode, :to => hosts, :digest => @digest)
59:     rescue => detail
60:       puts detail.backtrace if Puppet[:trace]
61:       puts detail.to_s
62:       exit(24)
63:     end
64:   end