diff options
Diffstat (limited to 'rss.rb')
-rw-r--r-- | rss.rb | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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')) |