_ = XLATOR.gettext
ngettext = XLATOR.ngettext
-__version__ = '0.1.1'
+__version__ = '0.1.2'
# =============================================================================
# -------------------------------------------------------------------------
def __init__(
- self, appname=None, verbose=0, version=GLOBAL_VERSION, base_dir=None,
+ self, appname=None, verbose=0, version=GLOBAL_VERSION, base_dir=None, quiet=False,
cfg_class=BaseMultiConfig, initialized=False, usage=None, description=None,
argparse_epilog=None, argparse_prefix_chars='-', env_prefix=None,
config_dir=DEFAULT_CONFIG_DIR):
super(BaseDPXPuppetApplication, self).__init__(
appname=appname, verbose=verbose, version=version, base_dir=base_dir,
- description=description, cfg_class=cfg_class, initialized=False,
+ description=description, cfg_class=cfg_class, initialized=False, quiet=quiet,
argparse_epilog=argparse_epilog, argparse_prefix_chars=argparse_prefix_chars,
env_prefix=env_prefix, config_dir=config_dir
)
else:
add_stems.append(additional_stems)
- for stem in ('mail', 'hooks'):
+ for stem in ('mail', 'puppet-tools'):
if stem not in add_stems:
add_stems.append(stem)
result = []
- tokens = self.whitespace_re.split(value)
+ tokens = self.re_whitespace.split(value)
for token in tokens:
if MailAddress.valid_address(token):
result.append(token)
cfg = DpxPuppetConfig(
appname=self.appname,
- config_dir='test', additional_stems='test',
+ additional_cfgdirs=self.test_cfg_dir, additional_stems='test',
verbose=self.verbose,
)
LOG.debug("DpxPuppetConfig %%r: %r", cfg)
quiet = True
app = BaseDPXPuppetApplication(
- appname=self.appname, verbose=self.verbose)
- app.quiet = quiet
+ appname=self.appname, quiet=quiet, verbose=self.verbose)
LOG.debug("Drawing lines ...")
app.empty_line()