Class: CLISplash::Config
Constant Summary
Splash::Constants::AUTHOR, Splash::Constants::BACKENDS_STRUCT, Splash::Constants::CONFIG_FILE, Splash::Constants::COPYRIGHT, Splash::Constants::DAEMON_LOGMON_SCHEDULING, Splash::Constants::DAEMON_PID_FILE, Splash::Constants::DAEMON_PID_PATH, Splash::Constants::DAEMON_PROCESS_NAME, Splash::Constants::DAEMON_STDERR_TRACE, Splash::Constants::DAEMON_STDOUT_TRACE, Splash::Constants::EMAIL, Splash::Constants::EXECUTION_TEMPLATE, Splash::Constants::EXECUTION_TEMPLATE_TOKENS_LIST, Splash::Constants::LICENSE, Splash::Constants::LOGGERS_STRUCT, Splash::Constants::PROMETHEUS_PUSHGATEWAY_HOST, Splash::Constants::PROMETHEUS_PUSHGATEWAY_PORT, Splash::Constants::TRACE_PATH, Splash::Constants::TRANSPORTS_STRUCT, Splash::Constants::VERSION
Splash::Exiter::EXIT_MAP
Instance Method Summary
collapse
#change_logger, #get_logger
#get_config
#checkconfig, #setupsplash
#daemonize, #get_process, #group_root, #install_file, #is_root?, #make_folder, #make_link, #run_as_root, #search_file_in_gem, #user_root, #verify_file, #verify_folder, #verify_link, #verify_service
#splash_exit
Instance Method Details
#sanitycheck ⇒ Object
23
24
25
26
|
# File 'lib/splash/cli/config.rb', line 23
def sanitycheck
acase = run_as_root :checkconfig
splash_exit acase
end
|
#setup ⇒ Object
17
18
19
20
|
# File 'lib/splash/cli/config.rb', line 17
def setup
acase = run_as_root :setupsplash, options
splash_exit acase
end
|
#version ⇒ Object
29
30
31
32
33
34
35
|
# File 'lib/splash/cli/config.rb', line 29
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
|