# Terrific constants APP_NAME = "rest-ftp-daemon" APP_NICK = "rftpd" APP_VER = "0.245.1" # Provide default config file information APP_LIB = File.expand_path File.dirname(__FILE__) APP_ROOT = File.expand_path(File.dirname(__FILE__) + "/../../") DEFAULT_CONFIG_PATH = File.expand_path "/etc/#{APP_NAME}.yml" SAMPLE_CONFIG_FILE = File.expand_path(File.join File.dirname(__FILE__), "/../../rest-ftp-daemon.yml.sample") TAIL_MESSAGE = < :active, JOB_STATUS_FAILED => :warning, JOB_STATUS_FINISHED => :success, JOB_STATUS_UPLOADING => :info, JOB_STATUS_RENAMING => :info, } DASHBOARD_WORKER_STYLES = { WORKER_STATUS_WAITING => :success, WORKER_STATUS_RUNNING => :info, WORKER_STATUS_CRASHED => :danger, WORKER_STATUS_FINISHED => :success, } # Initialize defaults APP_STARTED = Time.now APP_LIBS = File.dirname(__FILE__)