コード例 #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
ファイル: deploy.py プロジェクト: xiongchiamiov/harold
 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
ファイル: deploy.py プロジェクト: ecalifornica/harold
 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