Sha256: 48357ba5a205accc10ea3bdb4215b2edda09d18ea20711f4aafbcfe2e23ed445

Contents?: true

Size: 932 Bytes

Versions: 6

Compression:

Stored size: 932 Bytes

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

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
prometheus-splash-0.4.5 lib/splash/cli/config.rb
prometheus-splash-0.4.4 lib/splash/cli/config.rb
prometheus-splash-0.4.3 lib/splash/cli/config.rb
prometheus-splash-0.4.2 lib/splash/cli/config.rb
prometheus-splash-0.4.1 lib/splash/cli/config.rb
prometheus-splash-0.4.0 lib/splash/cli/config.rb