aboutsummaryrefslogtreecommitdiffstats
path: root/test.py
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2012-07-10 18:03:19 -0400
committerbnewbold <bnewbold@robocracy.org>2012-07-10 18:03:19 -0400
commitd19ca7fe4fc642282dbd5694ad34530ee4b30c2b (patch)
tree7c7b0aac0056aacef1cb38d72c310c8009d90cec /test.py
parentcccf7cc7443c00c84fb59a4e840ebca45a0c1e01 (diff)
downloadexmachina-d19ca7fe4fc642282dbd5694ad34530ee4b30c2b.tar.gz
exmachina-d19ca7fe4fc642282dbd5694ad34530ee4b30c2b.zip
initial scafolding
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/test.py b/test.py
new file mode 100755
index 0000000..f6c4de1
--- /dev/null
+++ b/test.py
@@ -0,0 +1,25 @@
+#!/usr/bin/env python
+
+import sys
+import optparse
+import logging
+import socket
+
+import bjsonrpc
+import bjsonrpc.connection
+import augeas
+
+# =============================================================================
+# Command line handling
+def main():
+
+ socket_path="/tmp/exmachina.sock"
+ sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
+ sock.connect(socket_path)
+
+ c = bjsonrpc.connection.Connection(sock)
+ print c.call.whattime()
+ print c.call.listfiles()
+
+if __name__ == '__main__':
+ main()