Skip to content

Commit

Permalink
Moved config files to ./config
Browse files Browse the repository at this point in the history
  • Loading branch information
ndbroadbent committed Mar 17, 2011
1 parent a2f38c8 commit 399e036
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions octopus_sinatra.rb
Expand Up @@ -16,7 +16,7 @@ def relative(filename)

# Load $config.
$config = YAML.load_file(relative("config/config.yml"))
$users = YAML.load_file(relative("authorized_users.yml"))
$users = YAML.load_file(relative("config/authorized_users.yml"))

SwitchChannel = $config["SwitchChannel"]
GreenChannel = $config["GreenChannel"]
Expand Down Expand Up @@ -101,7 +101,7 @@ def shellfm_trigger(name)
# (and if the time is reasonable.)
time = hk_time
if time.hour >= 7 and time.hour <= 22
if radio_prefs = YAML.load_file(relative("user_radio_prefs.yml"))
if radio_prefs = YAML.load_file(relative("config/user_radio_prefs.yml"))
if stations = radio_prefs[name]
# Pick a random station, and play it.
station = stations[rand(stations.size)]
Expand Down

0 comments on commit 399e036

Please sign in to comment.