summaryrefslogtreecommitdiffstats
path: root/func/minion/modules/test.py
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@dangerouslyinc.com>2007-10-02 21:42:47 -0300
committerJames Bowes <jbowes@redhat.com>2007-10-02 21:33:49 -0400
commit1ce955ec36f775d8fde2cb9d7943178e8b9d60da (patch)
tree4c69d218fde87091d4e5d1f3138a435b9164dbf4 /func/minion/modules/test.py
parent3c13a4f30f247f4aa75c02c65e6bb6e575e30d01 (diff)
downloadthird_party-func-1ce955ec36f775d8fde2cb9d7943178e8b9d60da.tar.gz
third_party-func-1ce955ec36f775d8fde2cb9d7943178e8b9d60da.tar.xz
third_party-func-1ce955ec36f775d8fde2cb9d7943178e8b9d60da.zip
Moved code under the func namespace.
Previously we had overlord, minion, modules, and func all at the root of the source tree. After install these would all be shuffled below func. Relocated them in the source tree to reflect this.
Diffstat (limited to 'func/minion/modules/test.py')
-rwxr-xr-xfunc/minion/modules/test.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/func/minion/modules/test.py b/func/minion/modules/test.py
new file mode 100755
index 0000000..55265a3
--- /dev/null
+++ b/func/minion/modules/test.py
@@ -0,0 +1,19 @@
+#!/usr/bin/python
+
+from modules import func_module
+
+class Test(func_module.FuncModule):
+ version = "11.11.11"
+ api_version = "0.0.1"
+ description = "Just a very simple example module"
+ def __init__(self):
+ self.methods = {
+ "add": self.add
+ }
+ func_module.FuncModule.__init__(self)
+
+ def add(self, numb1, numb2):
+ return numb1 + numb2
+
+methods = Test()
+register_rpc = methods.register_rpc