make couchapp database magically

This commit is contained in:
Chris Anderson 2008-10-29 12:13:22 -07:00
parent a3811320e5
commit 7b6f39f5c6

View file

@ -44,6 +44,7 @@ when /push/
puts "push dirname [appname] database"
exit(0)
end
CouchRest.database!(dbstring)
dbspec = CouchRest.parse(dbstring)
fm = CouchRest::FileManager.new(dbspec[:database], dbspec[:host])
fm.push_app(dir, appname)