# File lib/puppet/application/queue.rb, line 72
72:   def setup
73:     unless Puppet.features.stomp?
74:       raise ArgumentError, "Could not load the 'stomp' library, which must be present for queueing to work.  You must install the required library."
75:     end
76: 
77:     setup_logs
78: 
79:     exit(Puppet.settings.print_configs ? 0 : 1) if Puppet.settings.print_configs?
80: 
81:     require 'puppet/resource/catalog'
82:     Puppet::Resource::Catalog.terminus_class = :active_record
83: 
84:     daemon.daemonize if Puppet[:daemonize]
85: 
86:     # We want to make sure that we don't have a cache
87:     # class set up, because if storeconfigs is enabled,
88:     # we'll get a loop of continually caching the catalog
89:     # for storage again.
90:     Puppet::Resource::Catalog.cache_class = nil
91:   end