Exemple #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),
     }
Exemple #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,
        }
Exemple #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,
        }
Exemple #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,
        }
Exemple #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,
        }
Exemple #6
0
 def __init__(self, http, dispatcher):
     ProtectedResource.__init__(self, http)
     self.dispatcher = dispatcher
Exemple #7
0
 def __init__(self, http, monitor):
     ProtectedResource.__init__(self, http)
     self.monitor = monitor
Exemple #8
0
 def __init__(self, http, dispatcher):
     ProtectedResource.__init__(self, http)
     self.dispatcher = dispatcher
Exemple #9
0
 def __init__(self, http, monitor):
     ProtectedResource.__init__(self, http)
     self.monitor = monitor
Exemple #10
0
 def __init__(self, http, watchdog):
     ProtectedResource.__init__(self, http)
     self.watchdog = watchdog
Exemple #11
0
 def __init__(self, http, alerter):
     ProtectedResource.__init__(self, http)
     self.alerter = alerter
Exemple #12
0
 def __init__(self, http, alerter):
     ProtectedResource.__init__(self, http)
     self.alerter = alerter