aspiers/github-notifications

make constants configurable

Ouverte

#1 ouverte le 27 févr. 2017

 (0 commentaire) (0 réaction) (0 personne assignée)Ruby (1 fork)github user discovery
enhancementhelp wanted

Métriques du dépôt

Stars
 (2 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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"

Guide contributeur