 
 create_tar = (root, name) ->
   d = W.defer()
-  tar_path = path.join(root, "#{name}.tar")
+  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))

Heroku  = require 'heroku-client'
tar     = require 'tar'
fstream = require 'fstream'
request = require 'request'

module.exports = (root, config) ->


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