benoitc/erica — pull request #33 by ryanramage (2012-10-15 16:45:40+00:00)
Title: Inital work on uploading from _docs

A good start on issue #17.

Current summary:

- uses _docs as the default
- uses couch_beam:save_doc, so if there is an _id, it is used, otherwise doc gets a generated _id. The filename is ignored. Should it be considered for anything?
- currently flat hierarchy. no nested folders, etc.
- prints to console success/total docs uploaded if there is a _docs dir and one or more docs.

Todo:

- Add support for a folder matching a doc name, and having attachments in that folder.
- Using the -f switch to force overwrite of docs that exist.
- Check for doc before doing a save_doc so no conflict is generated.
- better logging of error conditions.
- specify an alternate docs dir.