lib/splash/config/flush.rb in prometheus-splash-0.5.3 vs lib/splash/config/flush.rb in prometheus-splash-0.6.0
- old
+ new
@@ -1,9 +1,17 @@
+# coding: utf-8
+
+# Base Splash module
module Splash
+
+ # module for Configuration utilities
module ConfigUtilities
include Splash::Constants
-
+ # clean backend action method
+ # @param [Hash] options
+ # @option options [Symbol] :name the name of the backend (:redis, :file)
+ # @return [Hash] An Exiter case hash (:quiet_exit or :configuration_error)
def flush_backend(options ={})
config = get_config
self.extend Splash::Backends
self.extend Splash::Loggers
log = get_logger