 kite.worker manifest, 
 
   deploy: (options, callback) ->
-    {id, kiteName, zipUrl} = options
+    {id, kiteName, version, zipUrl} = options
     deployment = new Deployment(id, kiteName, zipUrl)
     deployment.create-lxc () ->
       deployment.downloadAndExtractKite deployment.runKite.bind deployment


class Deployment
  @pathToContainers = "/var/lib/lxc"

  constructor: (@id, @kiteName, @zipUrl) ->
    console.log "......Deployment constructor"
    @kitesPath = path.join Deployment.pathToContainers, @id, "overlay", "opt", "kites"

  createLxc: (callback) ->
    cmd = spawn "create-lxc", [@kiteName]

    cmd.on 'close', (code) ->
      console.log 'create lxc process exited with code ', code
      callback()

  downloadAndExtractKite: (callback) ->
    {kitePath, zipUrl, kiteName} = this
