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

Class ZenPackCmd

source code

             object --+        
                      |        
        CmdBase.CmdBase --+    
                          |    
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
 
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 ZenScriptBase.ZenScriptBase: __init__, closeAll, closedb, connect, findDevice, getConnection, getDataRoot, getDmdObj, login, logout, opendb, syncdb

Inherited from CmdBase.CmdBase: buildParser, checkLogpath, generate_configs, generate_xml_configs, generate_xml_table, getConfigFileDefaults, parseOptions, pretty_print_config_comment, setupLogging

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]

Inherited from CmdBase.CmdBase: doesLogging

Properties [hide private]

Inherited from object: __class__

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: ZenScriptBase.ZenScriptBase.buildOptions
(inherited documentation)