lib/splash/cli/daemon.rb in prometheus-splash-0.4.5 vs lib/splash/cli/daemon.rb in prometheus-splash-0.5.0

- old
+ new

@@ -17,28 +17,18 @@ With --no-scheduling, inhibit commands scheduling\n With --no-purge, inhibit purge Input Queue for Splash Daemon LONGDESC desc "start", "Starting Splash Daemon" def start - log = get_logger - if options[:purge] then - transport = get_default_client - if transport.class == Hash and transport.include? :case then - splash_exit transport - else - queue = "splash.#{Socket.gethostname}.input" - transport.purge queue: queue - log.info "Queue : #{queue} purged" - end - end acase = run_as_root :startdaemon, options splash_exit acase end desc "purge", "Purge Transport Input queue of Daemon" def purge log = get_logger + log.level = :fatal if options[:quiet] transport = get_default_client if transport.class == Hash and transport.include? :case then splash_exit transport else queue = "splash.#{Socket.gethostname}.input"