Method: SycLink::Firefox#read

Defined in:
lib/syclink/firefox.rb

#readObject

Reads the links from the Firefox database places.sqlite



14
15
16
17
18
19
20
21
# File 'lib/syclink/firefox.rb', line 14

def read
  bookmark_file = Dir.glob(File.expand_path(path)).shift
  raise "Did not find file #{path}" unless bookmark_file

  db = SQLite3::Database.new(path)

  import = db.execute(QUERY_STRING)
end