@@ -0,0 +1,776 @@
+#!/bin/python%0A%0Aimport subprocess, json, sys%0Asys.path.append('../lib')%0Aimport config_hci%0A%0Aconfig = config_hci.load_config()%0Aif not config:%0A    exit()%0A%0A# Deploy the egg%0Aprint %22Sending HCI's scrapy egg to scrapyd server...%22%0Ap = subprocess.Popen(%5B'scrapy', 'deploy'%5D, stdout=subprocess.PIPE, stderr=subprocess.PIPE)%0Aoutput, errors = p.communicate()%0Aprint output, errors%0Atry :%0A    output = json.loads(output)%0A    if output%5B'status'%5D != %22ok%22 :%0A        print %22There was a problem sending the scrapy egg.%22%0A        print output, errors%0A        exit()%0Aexcept ValueError:%0A    print %22There was a problem sending the scrapy egg.%22%0A    print output, errors%0A    exit()%0Aprint %22The egg was successfully sent to scrapyd server%22, config%5B'scrapyd'%5D%5B'host'%5D, %22on port%22, config%5B'scrapyd'%5D%5B'port'%5D%0A %0A

add deployment script for scrappy