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`

Class Variables | [hide private]
Inherited from `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: CmdBase.CmdBase.buildOptions (inherited documentation)