From d46f47157187fd7a276552a39430348333cfe9c2 Mon Sep 17 00:00:00 2001 From: Spyros Ligouras Date: Thu, 18 Jul 2013 14:08:23 +0300 Subject: [PATCH] deleted supervisor.coffee --- supervisor.coffee | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100755 supervisor.coffee diff --git a/supervisor.coffee b/supervisor.coffee deleted file mode 100755 index 6ddf6bbb..00000000 --- a/supervisor.coffee +++ /dev/null @@ -1,41 +0,0 @@ -fs = require('fs') -async = require('async') -request = require('request') - -API_ENDPOINT = 'http://paras.rulemotion.com:1337' - - -try - state = require('state.json') -catch e - console.error(e) - process.exit() - -bootstrapTasks = [ - (callback) -> - try - callback(null, require('/mnt/config.json')) - catch error - callback(error) - (config, callback) -> - request.post("#{API_ENDPOINT}/associate", { - user: config.id - }, (error, response, body) -> - if error - return callback(error) - - try - body = JSON.parse(body) - catch error - callback(error) - - state.virgin = false - state.uuid = body.uuid - - fs.writeFileSync('state.json', JSON.strigify(state)) - - - - callback(null) - ) -]