Пример #1
0
 def __init__(self, config, http, bot):
     ProtectedResource.__init__(self, http)
     shortener = UrlShortener()
     self.dispatchers = {
         "push": PushDispatcher(config, bot, shortener),
         "pull_request": PullRequestDispatcher(config, bot, shortener),
     }
Пример #2
0
    def __init__(self, config, http, bot, database):
        ProtectedResource.__init__(self, http)
        shortener = UrlShortener()

        push_dispatcher = PushDispatcher(config, bot, shortener)
        salon = Salon(config, bot, shortener, database)

        self.dispatchers = {
            "push": push_dispatcher.dispatch,
            "pull_request": salon.dispatch_pullrequest,
            "issue_comment": salon.dispatch_comment,
        }
Пример #3
0
    def __init__(self, config, http, bot, database):
        ProtectedResource.__init__(self, http)
        shortener = UrlShortener()

        push_dispatcher = PushDispatcher(config, bot, shortener)
        salon = Salon(config, bot, shortener, database)

        self.dispatchers = {
            "ping": push_dispatcher.dispatch_ping,
            "push": push_dispatcher.dispatch_push,
            "pull_request": salon.dispatch_pullrequest,
            "issue_comment": salon.dispatch_comment,
        }
Пример #4
0
    def __init__(self, http, bot, salons, database):
        ProtectedResource.__init__(self, http)

        self.salons = salons

        push_dispatcher = PushDispatcher(bot, salons)
        salon = Salon(bot, salons, database)

        self.dispatchers = {
            "ping": push_dispatcher.dispatch_ping,
            "push": push_dispatcher.dispatch_push,
            "pull_request": salon.dispatch_pullrequest,
            "issue_comment": salon.dispatch_comment,
            "pull_request_review": salon.dispatch_review,
        }
Пример #5
0
    def __init__(self, http, bot, salons, database):
        ProtectedResource.__init__(self, http)
        shortener = UrlShortener()

        self.salons = salons

        push_dispatcher = PushDispatcher(bot, shortener, salons)
        salon = Salon(bot, shortener, salons, database)

        self.dispatchers = {
            "ping": push_dispatcher.dispatch_ping,
            "push": push_dispatcher.dispatch_push,
            "pull_request": salon.dispatch_pullrequest,
            "issue_comment": salon.dispatch_comment,
            "pull_request_review": salon.dispatch_review,
        }
Пример #6
0
 def __init__(self, http, dispatcher):
     ProtectedResource.__init__(self, http)
     self.dispatcher = dispatcher
Пример #7
0
 def __init__(self, http, monitor):
     ProtectedResource.__init__(self, http)
     self.monitor = monitor
Пример #8
0
 def __init__(self, http, dispatcher):
     ProtectedResource.__init__(self, http)
     self.dispatcher = dispatcher
Пример #9
0
 def __init__(self, http, monitor):
     ProtectedResource.__init__(self, http)
     self.monitor = monitor
Пример #10
0
 def __init__(self, http, watchdog):
     ProtectedResource.__init__(self, http)
     self.watchdog = watchdog
Пример #11
0
 def __init__(self, http, alerter):
     ProtectedResource.__init__(self, http)
     self.alerter = alerter
Пример #12
0
 def __init__(self, http, alerter):
     ProtectedResource.__init__(self, http)
     self.alerter = alerter