summaryrefslogtreecommitdiffstats
path: root/func
diff options
context:
space:
mode:
authormakkalot <makkalot@gmail.com>2008-08-07 18:14:49 +0300
committermakkalot <makkalot@gmail.com>2008-08-07 18:14:49 +0300
commit504dffff05602e8dc0254114107b612f5696ade6 (patch)
treec9502abf184b82d253c9ca7d160ed3ff665f5a6e /func
parent11833cb069e0723b1395c28b64ce753a3a9acdec (diff)
downloadfunc-504dffff05602e8dc0254114107b612f5696ade6.tar.gz
func-504dffff05602e8dc0254114107b612f5696ade6.tar.xz
func-504dffff05602e8dc0254114107b612f5696ade6.zip
exporting the mount module for UI usage
Diffstat (limited to 'func')
-rw-r--r--func/minion/modules/mount.py76
1 files changed, 76 insertions, 0 deletions
diff --git a/func/minion/modules/mount.py b/func/minion/modules/mount.py
index 0db914f..741a214 100644
--- a/func/minion/modules/mount.py
+++ b/func/minion/modules/mount.py
@@ -82,3 +82,79 @@ class MountModule(func_module.FuncModule):
def inventory(self, flatten=True):
return self.list()
+
+
+ def register_method_args(self):
+ """
+ Implementing the method arg getter
+ """
+
+ return{
+ 'list':{'args':{}
+ 'description':"Listing the mounting points"
+ },
+ 'mount':{
+ 'args':{
+ 'device':{
+ 'type':'string',
+ 'optional':False,
+ 'description':'The device to be mounted',
+ },
+ 'dir':{
+ 'type':'string',
+ 'optional':False,
+ 'description':'The directory which will the device mounted under'
+ },
+ 'type':{
+ 'type':'string',
+ 'optional':True,
+ 'default':'auto',
+ 'description':'The type of the mount'
+ },
+ 'options':{
+ 'type':'list',
+ 'optional':True,
+ 'description':"Some extra options to be added to mount command"
+ },
+ 'createdir':{
+ 'type':'boolean',
+ 'optional':True,
+ 'description':'Check if you want to create the dir place if not exist'
+ }
+ },
+ 'description':"Mount the specified device under some directory"
+ },
+ 'umount':{'args':{
+ 'dir':{
+ 'type':'string',
+ 'optional':False,
+ 'description':'The directory which will be unmounted'
+ },
+ 'killall':{
+ 'type':'boolean',
+ 'optional':True,
+ 'description':'The killal option'
+ },
+ 'force'{
+ 'type':'boolean',
+ 'optional':True,
+ 'description':'To force operation check it'
+ },
+ 'lazy':{
+ 'type':'boolean',
+ 'optional':True,
+ 'description':'The lazy option'
+ }
+ },
+ 'description':"Unmounting the specified directory."
+ },
+ 'inventory':{'args':{
+ 'flatten':{
+ 'type':'boolean',
+ 'optional':True,
+ 'description':"To flatten check."
+ }
+ },
+ 'description':"Th einventory part of that module"
+ }
+ }