#!/bin/env python3
# -*- coding: utf-8 -*-
-__version__ = '1.0.0'
+__version__ = '1.0.1'
# vim: ts=4 et list
self.mail_to_addresses = []
self.mail_cc_addresses = []
if not no_cc:
- self.mail_cc_addresses = [self.default_email,]
+ self.mail_cc_addresses = [self.default_email, ]
self.sender_address = DEFAULT_FROM_SENDER
try:
if len(self.error_data) > 1:
s = 's'
-
if project:
body = 'Error{s} while processing {p!r} project:\n\n'.format(
s=s, p=project)
def __init__(self, appname=None, verbose=0, version=__version__):
"""Constructor."""
- #self.cache_file = None
self.environments = []
self.puppet_root_env_dir = self.default_puppet_root_env_dir
self.forge_uri = self.default_forge_uri
def post_init(self):
self.read_stdin = False
- #self.cache_file = os.path.join(self.data_dir, 'modules-info.yaml')
self.initialized = True
from __future__ import absolute_import
# Standard modules
-import os
import logging
import textwrap
-import json
-import glob
import datetime
-import fcntl
-import pwd
-import grp
-import errno
-import sys
import re
import time
-from operator import itemgetter
-
from distutils.version import LooseVersion
# Third party modules
-import six
-import yaml
-
-from six import reraise
# Own modules
from . import __version__
-from .common import pp, to_bytes, to_bool
+from .common import pp
from .base_app import BaseHookError, UncriticalHookError, BaseHookApp
-from .module_info import ModuleInfo
-
-from .module_list import ModuleInfoDict
-
-from .puppetfile import Puppetfile, PuppetfileError
-
LOG = logging.getLogger(__name__)
def post_init(self):
self.read_stdin = False
- #self.no_error_mail = True
+ # self.no_error_mail = True
self.initialized = True
# =============================================================================
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 list
-
from __future__ import absolute_import
# Standard modules
-import os
import logging
import textwrap
-import copy
import json
import datetime
import re
# Third party modules
-import six
-import yaml
# Own modules
from . import __version__
from .base_app import BaseHookError, BaseHookApp, UncriticalHookError
-from .module_info import ModuleInfo
-
-from .module_list import ModuleInfoDict
-
LOG = logging.getLogger(__name__)
DEFAULT_PARENT_DIR = '/etc/puppetlabs/code/fileserver'