Top Level Namespace

Defined Under Namespace

Modules: Splitter, XmlUtil Classes: Archive, Directory, FeedServer, Fetcher, FileSource, History, Item, Post_id_rss, Source, SourceBase, Splitter_atom, Splitter_rss

Constant Summary collapse

NS =

known namespaces for xpath search

[
  "atom:http://www.w3.org/2005/Atom",
  "dc:http://purl.org/dc/elements/1.1/",
  "app:http://purl.org/atom/app#",
  "wp:http://wordpress.org/export/1.2/"
]
CONFIG_FILE =
"blogfeeds.yaml"
Debug =
true

Instance Method Summary collapse

Instance Method Details

#die(error) ⇒ Object



284
285
286
287
# File 'lib/abelard/load.rb', line 284

def die(error)
  puts error
  exit 1
end

#ensure_dest(dest) ⇒ Object



335
336
337
338
339
340
# File 'lib/abelard/load.rb', line 335

def ensure_dest(dest)
  Dir::mkdir(dest) unless File.directory?(dest)
  unless File.directory?(dest)
    $stderr.puts "Could not create directory #{dest}"
  end
end