Package Products :: Package ZenModel :: Module zenmib :: Class PackageManager |
[hide private]
[frames] | no frames]

# Class PackageManager

source code

Given an URL, filename or archive (eg zip, tar), extract the files from the package and return a list of filenames.

Instance Methods | [hide private]
__init__(self, log, downloaddir, extractdir) Initialize the packagae manager. | source code
downloadExtract(self, url) Download and extract the list of filenames. | source code
download(self, url) Download the package from the given URL, or if it's a filename, return the filename. | source code
processPackage(self, pkgFileName) Figure out what type of file we have and extract out any files and then enumerate the file names. | source code
unzip(self, file) Unzip the given file into the current directory and return the directory in which files can be loaded. | source code
untar(self, file) Given a tar file, extract from the tar into the current directory. | source code
processDir(self, dir) Note all of the files in a directory. | source code
unbundlePackage(self, package, unpackageMethod) Extract the files and then add to the list of files. | source code
makeExtractionDir(self) Create an uniquely named extraction directory starting from a base extraction directory. | source code
cleanup(self) Remove any clutter left over from the installation. | source code
cleanupDir(self, dirName) | source code

Method Details | [hide private]

### __init__(self, log, downloaddir, extractdir) (Constructor) | source code
Initialize the packagae manager. Parameters: `log` (logging class object) - logging object `downloaddir` (string) - directory name to store downloads `extractdir` (string) - directory name to store downloads