reorganized repo structure
authorWard Vandewege <ward@jhvc.com>
Wed, 10 Apr 2013 15:40:35 +0000 (11:40 -0400)
committerWard Vandewege <ward@jhvc.com>
Wed, 10 Apr 2013 15:40:35 +0000 (11:40 -0400)
python/wh.py [deleted file]
sdk/cli/wh [moved from cli/wh with 100% similarity]
sdk/cli/wh-run-pipeline-instance [moved from cli/wh-run-pipeline-instance with 100% similarity]

diff --git a/python/wh.py b/python/wh.py
deleted file mode 100644 (file)
index 35a9ac5..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-import pprint\r
-import httplib2\r
-import sys\r
-import json\r
-import ssl\r
-from apiclient.discovery import build\r
-import uritemplate\r
-import os\r
-\r
-url = ('https://localhost:3000/discovery/v1/apis/'\r
-  'orvos/v1/rest')\r
-\r
-api_key = "AIzaSyBqwUZG-rw6h5p9hoI0iPA4HCZZVj3v93g"\r
-token = "4exra8rbjsfzovhfppims2gbbs7632tcgr4tsrtsta8t67a086"\r
-\r
-# Create an httplib2.Http object to handle our HTTP requests and authorize it\r
-# with our good Credentials.\r
-http = httplib2.Http()\r
-#http = credentials.authorize(http)\r
-http.disable_ssl_certificate_validation=True\r
-\r
-service = build('orvos', 'v1', http=http, discoveryServiceUrl=url)\r
-\r
-#pprint.pprint(content)\r
-#print json.dumps(response, sort_keys = True, indent = 3)\r
-       \r
-\r
-def getList(dr):\r
-       for i in dir(dr):\r
-               if not i[0] =='_':\r
-                       print "   %s" % i\r
-       print ''\r
-\r
-def getExecute(bd, s, s1):\r
-       collection = getattr(bd, s)()\r
-       request = getattr(collection, s1)(oauth_token=token)\r
-       response = request.execute()\r
-       return response\r
-\r
-\r
-if len(sys.argv) == 1:\r
-       print '\nThis Orvos Cluster supports the following api commands:\n'\r
-       getList(service)\r
-\r
-elif len(sys.argv) == 2:\r
-       if sys.argv[1] in dir(service):\r
-               print '\nThis api command supports the following method:\n'\r
-               getList(getattr(service, sys.argv[1])())\r
-       else:\r
-               print '\nThis Orvos Cluster supports the following api commands:\n'\r
-               getList(service)\r
-               print '"%s" is not a supported api command of the Orvos Cluster.\n' % sys.argv[1]\r
-\r
-if len(sys.argv) >= 3:\r
-       if sys.argv[2] == 'create':\r
-               pass\r
-       elif sys.argv[2] == 'delete':\r
-               pass\r
-       elif sys.argv[2] == 'get':\r
-               response = getExecute(service, sys.argv[1], 'list')\r
-               if len(sys.argv) == 3 :\r
-                       print "Please specify the uuid of the user you want to get"\r
-               if len(sys.argv) == 5 and sys.argv[3] == '--json':\r
-                       for itm in response.get('items', []):\r
-                               if itm['uuid'] == sys.argv[4]:\r
-                                       print json.dumps(itm)\r
-               if len(sys.argv) == 5 and sys.argv[3] == '--jsonhuman':\r
-                       for itm in response.get('items', []):\r
-                               if itm['uuid'] == sys.argv[4]:\r
-                                       print json.dumps(itm, sort_keys=True, indent=3)\r
-               else:\r
-                       for itm in response.get('items', []):\r
-                               if itm['uuid'] == sys.argv[3]:\r
-                                       for x in itm:\r
-                                               print '%s: %s' % (x, itm[x])\r
-       elif sys.argv[2] == 'list':\r
-               response = getExecute(service, sys.argv[1], sys.argv[2])\r
-               if len(sys.argv) == 4 and sys.argv[3] == '--json':\r
-                       print json.dumps(response, sort_keys=True, indent = 3)\r
-               else:\r
-                       for itm in response.get('items',[]):\r
-                               print itm['uuid']\r
-       elif sys.argv[2] == 'update':\r
-               pass\r
similarity index 100%
rename from cli/wh
rename to sdk/cli/wh