       if err then warn err
       log response, "App saved!"
       callback?()
-  
+
   publishApp:(path, callback)->
 
     kiteController = @getSingleton('kiteController')
     appName        = getManifestFromPath(path).name
-    
+
     @getApp appName, (appScript)=>
 
       manifest    = @constructor.manifests[appName]

          callback err, response
    else
      callback null, scriptInput
  
  
  saveCompiledApp:(app, script, callback)->
    
    @getSingleton("kiteController").run
      toDo        : "uploadFile"
      withArgs    : {

      publishPath = FSHelper.escapeFilePath "/opt/Apps/#{nickname}/#{manifest.name}/#{manifest.version}"
      userAppPath = if /~\//.test manifest.path
        manifest.path.replace("~/", "/Users/#{nickname}/")
      else
        "#{manifest.path}/"
      options     =
        toDo          : "publishApp"
