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

Class ZenPackCmd

  CmdBase --+    
            |    
ZenScriptBase --+
                |
               ZenPackCmd


Manage ZenPacks
Method Summary
  buildOptions(self)
basic options setup sub classes can add more options here
  copyDir(self, srcDir)
Copy an unzipped zenpack to the appropriate location.
  extract(self, fname)
Unpack a ZenPack, and return the name
  install(self, packName)
  linkDir(self, srcDir)
Symlink the srcDir into Products Return the name.
  preInstallCheck(self)
Check that prerequisite zenpacks are installed.
  remove(self, packName)
  run(self)
Execute the user's request
  stop(self, why)
Inherited from ZenScriptBase: __init__, closeAll, closedb, connect, findDevice, getConnection, getContext, getDataRoot, getDmdObj, login, logout, opendb, syncdb
Inherited from CmdBase: buildParser, parseOptions, setupLogging

Class Variable Summary
Inherited from CmdBase: doesLogging

Method Details

buildOptions(self)

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

copyDir(self, srcDir)

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

extract(self, fname)

Unpack a ZenPack, and return the name

linkDir(self, srcDir)

Symlink the srcDir into Products Return the name.

preInstallCheck(self)

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

run(self)

Execute the user's request

Generated by Epydoc 2.1 on Thu Aug 16 09:55:16 2007 http://epydoc.sf.net