aboutsummaryrefslogtreecommitdiffstats
path: root/rss.rb
diff options
context:
space:
mode:
Diffstat (limited to 'rss.rb')
-rw-r--r--rss.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/rss.rb b/rss.rb
index ea1068c..4890fd4 100644
--- a/rss.rb
+++ b/rss.rb
@@ -20,7 +20,14 @@ require_relative 'lib/feed'
require 'yaml'
require 'erb'
-feeds = YAML.load(IO.read('feeds.yml'))
+config_file = File.expand_path('~/.config/feeds.yml')
+
+unless File.exists?(config_file)
+ puts "Config file #{config_file} not found. Please create it!"
+ exit
+end
+
+feeds = YAML.load(IO.read(config_file))
items = []
feed_header = ERB.new(IO.read('lib/views/feed_header.html.erb'))