Trees | Indices | Help |
|
---|
|
|
|||
NonCriticalInstallError | |||
ZenPackCmd Utilities for creating, installing, removing ZenPacks. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
__doc__ = "Manage ZenPacks"
|
|||
log = logging.getLogger('zen.ZenPackCMD')
|
|||
FQDN = socket.getfqdn()
|
|||
ZEN_PACK_INDEX_URL = ''
|
|||
ZENPACK_ENTRY_POINT = 'zenoss.zenpacks'
|
|
Create the zenpack in the filesystem. The zenpack is not installed in Zenoss, it is simply created in the $ZENHOME/ZenPacks directory. Usually this should be followed with a "zenpack install" call. zpId should already be valid, scrubbed value. prevZenPackName is written to PREV_ZENPACK_NAME in setup.py. |
Return tuple (bool, string) where first element is true if a new zenpack can be created with the given info and false if not. If first element is True then the second part of the tuple contains the scrubbed ZenPack id. If the first part is False then the second contains an explanatory message. |
If the given name conforms to ZenPack naming rules, or can easily be modified to do so, then return (True, scrubbedName) where scrubbedName is either name or a slightly modified name. If the given name does not conform to naming rules and we can't easily modify it to do so then return (False, errorMsg) where errorMsg describes why name is unacceptable. |
Installs the given egg, instantiates the ZenPack, installs in dmd.ZenPackManager.packs, and runs the zenpacks's install method. Returns a list of ZenPacks that were installed. |
Install the given egg and add to the current working set. This does not install the egg as a ZenPack. Return a list of distributions that should be installed as ZenPacks. |
Given an installed dist, install it into Zenoss as a ZenPack. Return the ZenPack instance. |
Find installed eggs that provide a zenoss.zenpacks entry point. Return a list of distributions whose ZenPacks need to be installed or upgraded. The list is sorted into the order in which this needs to happen. |
Given the path to a dist (an egg) add it to the current working set. This is basically a pkg_resources-friendly way of adding it to sys.path. Return a list of all distributions on distPath that appear to be ZenPacks. |
Use easy_install to install an egg from the filesystem. easy_install will install the egg, but does not install it into Zenoss as ZenPacks. Returns a list of distributions that were installed that appear to be ZenPacks. |
Fetch the named zenpack and all its dependencies and install them. Return a list of the ZenPacks that were installed. |
Use easy_install to retrieve the given zenpack and any dependencies. easy_install will install the eggs, but does not install them into Zenoss as ZenPacks. Return a list of distributions just installed that appear to be ZenPacks. NB: This should be refactored. It shares most of its code with DoEasyInstall() |
Upload the specified zenpack to the given project. Project is a string of the form 'enterprise/myproject' or 'community/otherproject'. |
Remove the given ZenPack from Zenoss. Whether the ZenPack will be removed from the filesystem or not depends on the result of the ZenPack's shouldDeleteFilesOnRemoval method. |
Execute the easy_install command to unlink the given egg. What this is really doing is switching the egg to be in multiple-version mode, however this is the first step in deleting an egg as described here: http://peak.telecommunity.com/DevCenter/EasyInstall#uninstalling-packages |
Returns a tuple of (canRemove, otherDependents) canRemove is True if the listed zenPacks have no dependents not also listed in packNames, False otherwise. otherDependents is a list of zenpack names not in packNames that depend on one or more of the packs in packNames. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1.1812 on Tue Oct 11 12:51:17 2011 | http://epydoc.sourceforge.net |