예제 #1
0
파일: github.py 프로젝트: rram/harold
 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
파일: github.py 프로젝트: prodigeni/harold
    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
파일: github.py 프로젝트: dellis23/harold
    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
파일: github.py 프로젝트: kjoconnor/harold
    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
파일: github.py 프로젝트: spladug/harold
    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
파일: irc.py 프로젝트: kemitche/harold
 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
파일: httpchat.py 프로젝트: tomsoir/harold
 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
파일: alerts.py 프로젝트: dellis23/harold
 def __init__(self, http, alerter):
     ProtectedResource.__init__(self, http)
     self.alerter = alerter
예제 #12
0
파일: alerts.py 프로젝트: rram/harold
 def __init__(self, http, alerter):
     ProtectedResource.__init__(self, http)
     self.alerter = alerter