Package ZenUtils :: Module zenpack :: Class ZenPackCmd
[hide private]
[frames] | no frames]

Class ZenPackCmd

source code

        Products.ZenUtils.CmdBase.CmdBase --+    
                                            |    
Products.ZenUtils.ZenScriptBase.ZenScriptBase --+
                                                |
                                               ZenPackCmd

Manage ZenPacks

Instance Methods [hide private]
 
run(self)
Execute the user's request
source code
 
preInstallCheck(self)
Check that prerequisite zenpacks are installed.
source code
 
install(self, packName) source code
 
remove(self, packName) source code
 
extract(self, fname)
Unpack a ZenPack, and return the name
source code
 
copyDir(self, srcDir)
Copy an unzipped zenpack to the appropriate location.
source code
 
linkDir(self, srcDir)
Symlink the srcDir into Products Return the name.
source code
 
stop(self, why) source code
 
buildOptions(self)
basic options setup sub classes can add more options here
source code

Inherited from Products.ZenUtils.ZenScriptBase.ZenScriptBase: __init__, closeAll, closedb, connect, findDevice, getConnection, getContext, getDataRoot, getDmdObj, login, logout, opendb, syncdb

Inherited from Products.ZenUtils.CmdBase.CmdBase: buildParser, generate_configs, generate_xml_table, parseOptions, pretty_print_config_comment, setupLogging

Class Variables [hide private]

Inherited from Products.ZenUtils.CmdBase.CmdBase: doesLogging

Method Details [hide private]

preInstallCheck(self)

source code 
Check that prerequisite zenpacks are installed. Return True if no prereqs specified or if they are present. False otherwise.

copyDir(self, srcDir)

source code 
Copy an unzipped zenpack to the appropriate location. Return the name.

buildOptions(self)

source code 
basic options setup sub classes can add more options here
Overrides: Products.ZenUtils.ZenScriptBase.ZenScriptBase.buildOptions
(inherited documentation)