Mercurial > treepkg
changeset 7:96f4f58c62b5
Rename the Packager class to PackagerGroup
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Fri, 09 Mar 2007 14:33:50 +0100 (2007-03-09) |
parents | 38330d45047f |
children | 574506a022f6 |
files | runtreepkg.py treepkg/packager.py |
diffstat | 2 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/runtreepkg.py Fri Mar 09 12:36:05 2007 +0100 +++ b/runtreepkg.py Fri Mar 09 14:33:50 2007 +0100 @@ -12,7 +12,7 @@ import logging from optparse import OptionParser -from treepkg.packager import create_packager, Packager +from treepkg.packager import create_packager, PackagerGroup from treepkg.readconfig import read_config def initialize_logging(): @@ -37,8 +37,8 @@ initialize_logging() treepkg_opts, packager_opts = read_config(options.config_file) - packager = Packager([create_packager(**opts) for opts in packager_opts], - **treepkg_opts) - packager.run() + group = PackagerGroup([create_packager(**opts) for opts in packager_opts], + **treepkg_opts) + group.run() main()
--- a/treepkg/packager.py Fri Mar 09 12:36:05 2007 +0100 +++ b/treepkg/packager.py Fri Mar 09 14:33:50 2007 +0100 @@ -347,15 +347,15 @@ return module.AssemblyLine(**kw) -class Packager(object): +class PackagerGroup(object): def __init__(self, assembly_lines, check_interval): self.assembly_lines = assembly_lines self.check_interval = check_interval def run(self): - """Runs the plant indefinitely""" - logging.info("Packager start. Will check every %d seconds", + """Runs the packager group indefinitely""" + logging.info("Tree packager starts. Will check every %d seconds", self.check_interval) last_check = -1 while 1: