+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)

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

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

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

      , next
    (res, body, next) ->      # save team id
      team.github = body if body.id
      unless team.github
        console.warn "Proceeding without accurate GitHub team id"
        team.github = { id: 0 }
      team.save next
    (team, n, next) ->        # get people
      Person.find { _id: { $in: team.peopleIds } }, (err, people) ->
