lib/splash/cli/config.rb in prometheus-splash-0.5.0 vs lib/splash/cli/config.rb in prometheus-splash-0.5.2

- old
+ new

@@ -11,11 +11,11 @@ desc "setup", "Setup installation fo Splash" long_desc <<-LONGDESC Setup installation fo Splash\n with --preserve, preserve from reinstallation of the config LONGDESC - option :preserve, :type => :boolean + option :preserve, :type => :boolean, :aliases => "-P" def setup acase = run_as_root :setupsplash, options splash_exit acase end @@ -35,9 +35,15 @@ end desc "service", "Install Splashd Systemd service" def service acase = run_as_root :addservice + splash_exit acase + end + + desc "flushbackend", "Flush configured backend" + def flushbackend + acase = run_as_root :flush_backend splash_exit acase end end