Class: Evernicious::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/evernicious/runner.rb

Class Method Summary collapse

Class Method Details

.generate_evernote_file(delicious_bookmarks_file_path) ⇒ Object



3
4
5
6
7
# File 'lib/evernicious/runner.rb', line 3

def self.generate_evernote_file(delicious_bookmarks_file_path)
  bookmarks = parse_delicious_bookmarks(delicious_bookmarks_file_path)
  evernote_contents = EnexBuilder.new.build_enex_document(bookmarks).to_xml(:encoding => 'UTF-8')
  write_contents_to_output_file("#{delicious_bookmarks_file_path}.enex", evernote_contents)
end