+unless process.env.LOGIN
+  console.log "Usage: LOGIN=[github username]:[github password] coffee #{__filename}"
+  process.exit(1)
+
 env = require '../config/env'
 mongoose = require('../models')(env.mongo_url)
 require('../lib/mongo-log')(mongoose.mongo)

  throw err if err
  queue.push teams

queue.drain = ->
  mongoose.connection.close()
  console.log 'done'

async = require 'async'
request = require 'request'

url = "https://#{process.env.LOGIN}@api.github.com"

Team = mongoose.model 'Team'
Person = mongoose.model 'Person'
