 
 check_app_status = (heroku, id, name, d) ->
   heroku.apps(name).builds(id).info().then (res) ->
-    console.log res.status
+    switch res.status
       when 'pending'
         check_app_status(heroku, id, name, d)
       else

      return d2.promise
    .then (res) -> W(heroku.apps(config.name).builds(res.id).result().info())
    .finally ->
      fs.unlinkSync(path.join(root, "#{config.name}.tar"))
    .done ->
      d.resolve
        deployer: 'heroku'


create_tar = (root, name) ->
  d = W.defer()
  tar_path = path.join(root, "#{name}.tar.gz")

  stream = fstream.Reader(path: root, type: 'Directory')
    .pipe(tar.Pack(noProprietary: true))
    .pipe(zlib.createGzip())
    .pipe(fs.createWriteStream(tar_path))

  stream.on('close', d.resolve.bind(d, tar_path))
