Sha256: 3da1706e5f5349abafb6d2a75895dda6df5bd0d128cbd53dc2af053b8f4a2cf2
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
# coding: utf-8 module CLISplash class Config < Thor include Splash::ConfigUtilities include Splash::Helpers include Splash::Exiter include Splash::Loggers 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 def setup acase = run_as_root :setupsplash, options splash_exit acase end desc "sanitycheck", "Verify installation fo Splash" def sanitycheck acase = run_as_root :checkconfig splash_exit acase end 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 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
prometheus-splash-0.5.0 | lib/splash/cli/config.rb |