aspiers/github-notifications

make constants configurable

Aperta

#1 aperta il 27 feb 2017

 (0 commenti) (0 reazioni) (0 assegnatari)Ruby (1 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (2 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

It would be better if these constants were all configurable via a YAML or .ini file:

SLEEP_INTERVAL = 5 * 60 # 5 minutes
ONLINE_CHECK_TARGET_HOST = "8.8.8.8"
PING_COUNT = 10
LOG_DIR = ENV['HOME'] + "/.log"
LOG_FILE = LOG_DIR + "/github-notifications.log"

Guida contributor