Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (15 sloc) 332 Bytes
util = require 'util'
mongoose = require 'mongoose'
require('mongoose-types').loadTypes mongoose
require "./#{lib}" for lib in [
'invite'
'person'
'deploy'
'vote'
'team_limit'
'team'
'service'
]
module.exports = (url) ->
util.log 'connecting to ' + url.cyan
mongoose.connect url, (err) -> throw Error err if err