         form.append "version","#{options.version}"
         form.append "build","#{options.build}"
         form.append "content_src","#{options.content_src}"
-        
+
         form.append "asset",fs.createReadStream(options.asset)

  sendBuildRequest: (options) ->
    console.log "options:#{options}"
    if options.platform == "android"
      
      Q.Promise (resolve, reject, notify) =>
        r = request.post {url:"#{@server}/api/tasks",timeout: 1000*60*10}, (err, httpResponse, body)=>
          if err then reject(err) else resolve(body)
        
        form = r.form()
        form.append "access_token","#{atom.config.get('atom-butterfly.puzzleAccessToken')}"
        form.append "builder","cordova-android"

      JSON.parse result
    .then (task) ->
      buildStateView.setTask(task)


    .catch (err) ->
      buildStateView.destroy()
