Esempio n. 1
0
 def __init__(self, repo_dir, line_change_limit=None,
              line_removal_limit=None, debug=False, log_syslog=False,
              logger=syslog):
     set_attrs(self, {
         'repo_dir': repo_dir,
         'line_change_limit': line_change_limit,
         'line_removal_limit': line_removal_limit,
         'debug': debug,
         'log_syslog': log_syslog,
         'logger': logger,
     })
Esempio n. 2
0
    def __init__(self, **kwargs):
        kwargs = dict_merge(BINDBUILD, {
            'quiet': False,
            'verbose': False,
            'to_syslog': False,
        }, kwargs)
        set_attrs(self, kwargs)

        self.repo = GitRepo(
            self.prod_dir, self.line_decrease_limit, self.line_increase_limit,
            logger=self)
Esempio n. 3
0
    def __init__(self, **kwargs):
        kwargs = dict_merge(BINDBUILD, {
            'quiet': False,
            'verbose': False,
            'to_syslog': False,
        }, kwargs)
        set_attrs(self, kwargs)

        self.repo = GitRepo(self.prod_dir,
                            self.line_decrease_limit,
                            self.line_increase_limit,
                            logger=self)
Esempio n. 4
0
    def __init__(self, **kwargs):
        kwargs = dict_merge(BINDBUILD, {
            'verbose': True,
            'debug': False,
            'bs': DNSBuildRun(),  # Build statistic
        }, kwargs)
        set_attrs(self, kwargs)

        if self.log_syslog:
            syslog.openlog(b'bindbuild', 0, syslog.LOG_LOCAL6)

        self.repo = GitRepo(
            self.prod_dir, self.line_change_limit,
            self.line_removal_limit, debug=self.debug,
            log_syslog=self.log_syslog, logger=syslog)
Esempio n. 5
0
    def __init__(self, *args, **kwargs):
        kwargs = dict_merge(DHCPBUILD, {
            'verbose': True,
            'debug': False,
        }, kwargs)
        set_attrs(self, kwargs)

        if self.log_syslog:
            syslog.openlog(b'dhcp_build', 0, syslog.LOG_LOCAL6)

        self.repo = GitRepo(self.prod_dir,
                            self.line_change_limit,
                            self.line_removal_limit,
                            debug=self.debug,
                            log_syslog=self.log_syslog,
                            logger=syslog)
Esempio n. 6
0
 def __init__(self,
              repo_dir,
              line_change_limit=None,
              line_removal_limit=None,
              debug=False,
              log_syslog=False,
              logger=syslog):
     set_attrs(
         self, {
             'repo_dir': repo_dir,
             'line_change_limit': line_change_limit,
             'line_removal_limit': line_removal_limit,
             'debug': debug,
             'log_syslog': log_syslog,
             'logger': logger,
         })
Esempio n. 7
0
    def __init__(self, **kwargs):
        kwargs = dict_merge(
            BINDBUILD,
            {
                'verbose': True,
                'debug': False,
                'bs': DNSBuildRun(),  # Build statistic
            },
            kwargs)
        set_attrs(self, kwargs)

        if self.log_syslog:
            syslog.openlog(b'bindbuild', 0, syslog.LOG_LOCAL6)

        self.repo = GitRepo(self.prod_dir,
                            self.line_change_limit,
                            self.line_removal_limit,
                            debug=self.debug,
                            log_syslog=self.log_syslog,
                            logger=syslog)
Esempio n. 8
0
 def __init__(self, debug=False, log_syslog=False, logger=syslog):
     set_attrs(self, {
         'debug': debug,
         'log_syslog': log_syslog,
         'logger': logger,
     })
Esempio n. 9
0
 def __init__(self, debug=False, log_syslog=False, logger=syslog):
     set_attrs(self, {
         'debug': debug,
         'log_syslog': log_syslog,
         'logger': logger,
     })