             callback null, {}
 
 
+    # Download the manifest from the NPM registry. This manifest has many
+    # information (it includes history). So we extract the lastest version
+    # of the application manifest.
     downloadFromNpm: (packageName, callback) ->
         client = request.createClient "https://registry.npmjs.org/"
         client.get packageName, (err, res, data) ->

class exports.Manifest


    download: (app, callback) ->

        if app.package?

            else
                providerName = providerName[0]

                if providerName is "gitlab.cozycloud.cc"
                    Provider = require('./git_providers').CozyGitlabProvider

                else
                    Provider = require('./git_providers').GithubProvider

                provider = new Provider app
