Updating the son-emu-cli filename to a standard module name
authorcgeoffroy <geoffroy.chollon@thalesgroup.com>
Thu, 3 Mar 2016 17:19:16 +0000 (18:19 +0100)
committercgeoffroy <geoffroy.chollon@thalesgroup.com>
Thu, 3 Mar 2016 17:19:16 +0000 (18:19 +0100)
src/emuvim/cli/son-emu-cli [deleted file]
src/emuvim/cli/son_emu_cli.py [new file with mode: 0755]

diff --git a/src/emuvim/cli/son-emu-cli b/src/emuvim/cli/son-emu-cli
deleted file mode 100755 (executable)
index 61cbd43..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/python
-"""
- Simple CLI client to interact with a running emulator.
-
- (c) 2016 by Manuel Peuster <manuel.peuster@upb.de>
-
- The CLI offers different tools, e.g., compute, network, ...
- Each of these tools is implemented as an independent Python
- module.
-
- cli compute start dc1 my_name flavor_a
- cli network create dc1 11.0.0.0/24
-"""
-
-import sys
-import compute
-import network
-import datacenter
-import monitor
-
-def main():
-    if len(sys.argv) < 2:
-        print "Usage: son-emu-cli <toolname> <arguments>"
-        exit(0)
-    if sys.argv[1] == "compute":
-        compute.main(sys.argv[2:])
-    elif sys.argv[1] == "network":
-        network.main(sys.argv[2:])
-    elif sys.argv[1] == "datacenter":
-        datacenter.main(sys.argv[2:])
-    elif sys.argv[1] == "monitor":
-        monitor.main(sys.argv[2:])
-
-if __name__ == '__main__':
-    main()
diff --git a/src/emuvim/cli/son_emu_cli.py b/src/emuvim/cli/son_emu_cli.py
new file mode 100755 (executable)
index 0000000..61cbd43
--- /dev/null
@@ -0,0 +1,35 @@
+#!/usr/bin/python
+"""
+ Simple CLI client to interact with a running emulator.
+
+ (c) 2016 by Manuel Peuster <manuel.peuster@upb.de>
+
+ The CLI offers different tools, e.g., compute, network, ...
+ Each of these tools is implemented as an independent Python
+ module.
+
+ cli compute start dc1 my_name flavor_a
+ cli network create dc1 11.0.0.0/24
+"""
+
+import sys
+import compute
+import network
+import datacenter
+import monitor
+
+def main():
+    if len(sys.argv) < 2:
+        print "Usage: son-emu-cli <toolname> <arguments>"
+        exit(0)
+    if sys.argv[1] == "compute":
+        compute.main(sys.argv[2:])
+    elif sys.argv[1] == "network":
+        network.main(sys.argv[2:])
+    elif sys.argv[1] == "datacenter":
+        datacenter.main(sys.argv[2:])
+    elif sys.argv[1] == "monitor":
+        monitor.main(sys.argv[2:])
+
+if __name__ == '__main__':
+    main()