 # Configuration:
 #   GITLAB_CONFIG_FILE: the path to configuration file.
 #   GITLAB_URL
-#   GITLAB_AUTH_USERNAME
-#   GITLAB_AUTH_PASSWORD
 #
 #   configuration file like below,
 #


configFile    = process.env.GITLAB_CONFIG_FILE
gitlabUrl     = process.env.GITLAB_URL
privateToken  = process.env.GITLAB_PRIVATE_TOKEN
auth_username = process.env.GITLAB_AUTH_USERNAME
auth_password = process.env.GITLAB_AUTH_PASSWORD
debug         = process.env.GITLAB_DEBUG?
prefix        = '[gitlab]'


  conf = @sm.readJson configFile, prefix
  return unless conf

  target  = conf['target']

  # headers = {"PRIVATE-TOKEN": privateToken}

  # if auth_username and auth_password
  #   auth = {"user": auth_username, "pass": auth_password}


  # makeUrl = (projectId, Id) ->
  #   "#{gitlabUrl}/api/v3/projects/#{projectId}"

  # getProjectInfo = (projectId, callback) ->

  #   pjInfo = {}
  #   info        = {"url": makeUrl(projectId), "headers": headers}
