deploy_couch
deploy_couch is db deploy tool for couchdb.
How to install
gem install deploy_couch
Usage
deploy_couch 'path/to/couchdb.yml' [rollback:(1|2|3|..|all)]
[rollback:all] rollbacks all the deltas
Example
deploy_couch/spec/couchdb.yml for couchdb.yml config file deploy_couch/spec/integration/deltas for delta files
Config Parameters
hostname:
Delta File name format
Delta File content format
type: < document type, example: customer >
map_function: <map function used to modify customer document. return value 'update' indicates updating the document with changes>
function map(doc)
{
doc.address = "some address";
return 'update';
}
rollback_function: