aspiers/github-notifications

make constants configurable

Open

#1 opened on Feb 27, 2017

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Ruby (1 fork)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (2 stars)
PR merge metrics
 (No merged PRs in 30d)

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"

Contributor guide