added script destroy-user-db
[couchdb_scripts.git] / lib / leap / server.rb
1 require 'couchrest'
2
3 module LEAP
4   class Server < CouchRest::Server
5     def initialize
6       netrc = File.read('/root/.netrc').split(' ')
7       auth = "%{username}:%{password}@" % {username: netrc[3], password: netrc[5]}
8       super("http://#{auth}localhost:5984")
9     end
10   end
11 end