lib/splash/cli/config.rb in prometheus-splash-0.4.5 vs lib/splash/cli/config.rb in prometheus-splash-0.5.0
- old
+ new
@@ -23,17 +23,24 @@
def sanitycheck
acase = run_as_root :checkconfig
splash_exit acase
end
- desc "version", "display current Splash version"
+ desc "version", "Display current Splash version"
def version
log = get_logger
config = get_config
log.info "Splash version : #{config.version}, Author : #{config.author}"
- log_info config.copyright
+ log.info config.copyright
splash_exit case: :quiet_exit
end
+
+ desc "service", "Install Splashd Systemd service"
+ def service
+ acase = run_as_root :addservice
+ splash_exit acase
+ end
+
end
end