summaryrefslogtreecommitdiff
path: root/lib/leap/server.rb
blob: bc60455fc44537ee752212803322d553b1bde05d (plain)
1
2
3
4
5
6
7
8
9
10
11
require 'couchrest'

module LEAP
  class Server < CouchRest::Server
    def initialize
      netrc = File.read('/root/.netrc').split(' ')
      auth = "%{username}:%{password}@" % {username: netrc[3], password: netrc[5]}
      super("http://#{auth}localhost:5984")
    end
  end
end