class CLISplash::Config
Thor inherited class for configuration management
Public Instance Methods
flushbackend()
click to toggle source
# File lib/splash/cli/config.rb, line 54 def flushbackend if options[:name] then acase = run_as_root :flush_backend, options else return_cases = {} list_backends.each do |key,value| return_cases[key] = run_as_root :flush_backend, { :name => key } end errors = return_cases.select {|key,value| value[:case] != :quiet_exit}.keys acase = (errors.empty?)? {:case => :quiet_exit, :more => "All backends flushed successfully"}: {:case => :configuration_error, :more => "Backends #{errors.join(',')} flushing failed"} end splash_exit acase end
sanitycheck()
click to toggle source
# File lib/splash/cli/config.rb, line 28 def sanitycheck acase = run_as_root :checkconfig splash_exit acase end
service()
click to toggle source
# File lib/splash/cli/config.rb, line 45 def service acase = run_as_root :addservice splash_exit acase end
setup()
click to toggle source
# File lib/splash/cli/config.rb, line 21 def setup acase = run_as_root :setupsplash, options splash_exit acase end
version()
click to toggle source
# File lib/splash/cli/config.rb, line 35 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