Skip to content

Commit

Permalink
provide bundled status receivers as plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Sobolev committed Aug 14, 2014
1 parent af5e112 commit e05c648
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion master/buildbot/interfaces.py
Expand Up @@ -757,7 +757,7 @@ def finish():
"""The log has finished sending chunks to the consumer."""


class IStatusReceiver(Interface):
class IStatusReceiver(IPlugin):

"""I am an object which can receive build status updates. I may be
subscribed to an IStatus, an IBuilderStatus, or an IBuildStatus."""
Expand Down
5 changes: 4 additions & 1 deletion master/buildbot/plugins/__init__.py
Expand Up @@ -22,13 +22,16 @@
from buildbot.interfaces import IBuildStep
from buildbot.interfaces import IChangeSource
from buildbot.interfaces import IScheduler
from buildbot.interfaces import IStatusReceiver


__all__ = ['changes', 'schedulers', 'buildslave', 'steps']
__all__ = ['changes', 'schedulers', 'buildslave', 'steps', 'status']


# Names here match the names of the corresponding Buildbot module, hence
# 'changes', 'schedulers', but 'buildslave'
changes = get_plugins('change_source', IChangeSource)
schedulers = get_plugins('scheduler', IScheduler)
buildslave = get_plugins('build_slave', IBuildSlave)
steps = get_plugins('step', IBuildStep)
status = get_plugins('status', IStatusReceiver)

0 comments on commit e05c648

Please sign in to comment.