diff options
Diffstat (limited to '')
-rw-r--r-- | lib/feed2imap/config.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/feed2imap/config.rb b/lib/feed2imap/config.rb index 8129fd2..002db3e 100644 --- a/lib/feed2imap/config.rb +++ b/lib/feed2imap/config.rb @@ -26,13 +26,14 @@ DEFCACHE = ENV['HOME'] + '/.feed2imap.cache' # Feed2imap configuration class F2IConfig - attr_reader :imap_accounts, :cache, :feeds + attr_reader :imap_accounts, :cache, :feeds, :dumpdir # Load the configuration from the IO stream # TODO should do some sanity check on the data read. def initialize(io) @conf = YAML::load(io) @cache = @conf['cache'] || DEFCACHE + @dumpdir = @conf['dumpdir'] || nil @conf['feeds'] ||= [] @feeds = [] @imap_accounts = ImapAccounts::new |