lib/splash/webadmin.rb in prometheus-splash-0.7.0 vs lib/splash/webadmin.rb in prometheus-splash-0.8.0

- old
+ new

@@ -19,11 +19,11 @@ # Start the Splash Daemon # @param [Hash] options # @option options [Symbol] :quiet activate quiet mode for log (limit to :fatal) # @return [Hash] Exiter Case (:quiet_exit, :already_exist, :unknown_error or other) - def startdaemon(options = {}) + def startweb(options = {}) require 'splash/webadmin/main' config = get_config log = get_logger log.level = :fatal if options[:quiet] realpid = get_processes pattern: get_config.webadmin_process_name @@ -62,11 +62,11 @@ # Stop the Splash WebAdmin # @param [Hash] options # @option options [Symbol] :quiet activate quiet mode for log (limit to :fatal) # @return [Hash] Exiter Case (:quiet_exit, :not_found, other) - def stopdaemon(options = {}) + def stopweb(options = {}) config = get_config log = get_logger log.level = :fatal if options[:quiet] if File.exist?(config.webadmin_full_pid_path) then begin @@ -84,10 +84,10 @@ end # Status of the Splash WebAdmin, display status # @param [Hash] options ignored # @return [Hash] Exiter Case (:status_ko, :status_ok) - def statusdaemon(options = {}) + def statusweb(options = {}) log = get_logger config = get_config pid = realpid = '' pid = `cat #{config.webadmin_full_pid_path}`.to_s if File.exist?(config.webadmin_full_pid_path) listpid = get_processes({ :pattern => get_config.webadmin_process_name})