Exemplo n.º 1
0
class RepositoryConfig(PluginConfig):
    channel = Option(str)
    format = Option(str, '%(author)s committed %(commit_id)s (%(url)s) to ' +
                         '%(repository)s: %(summary)s')
    branches = Option(tup, [])
    max_commit_count = Option(int, default=3)
    bundled_format = Option(str, '%(authors)s made %(commit_count)d commits ' +
                                 '(%(commit_range)s - %(url)s) to ' +
                                 '%(repository)s')
Exemplo n.º 2
0
class IrcConfig(PluginConfig):
    username = Option(str, default=None)
    nick = Option(str)
    password = Option(str, default=None)
    host = Option(str)
    port = Option(int, default=6667)
    use_ssl = Option(bool, default=False)
    channels = Option(tup, default=[])
    userserv_password = Option(str, default=None)
    heartbeat_channel = Option(str)
Exemplo n.º 3
0
class DatabaseConfig(PluginConfig):
    connection_string = Option(str)

    def get_module_and_params(self):
        """Parse the SQLAlchemy connection string and return DBAPI info."""
        sa_url = url.make_url(self.connection_string)
        dialect_cls = sa_url.get_dialect()
        return dialect_cls.dbapi(), sa_url.translate_connect_args()
Exemplo n.º 4
0
class IrcConfig(PluginConfig):
    username = Option(str, default=None)
    nick = Option(str)
    password = Option(str, default=None)
    host = Option(str)
    port = Option(int, default=6667)
    use_ssl = Option(bool, default=False)
    userserv_password = Option(str, default=None)
Exemplo n.º 5
0
class DeployConfig(PluginConfig):
    organizations = Option(tup)
    default_hours_start = Option(parse_time)
    default_hours_end = Option(parse_time)
    default_tz = Option(pytz.timezone)
    blackout_hours_start = Option(parse_time)
    blackout_hours_end = Option(parse_time)
Exemplo n.º 6
0
class JabberConfig(PluginConfig):
    host = Option(str)
    port = Option(int, default=5222)
    id = Option(str)
    password = Option(str)
Exemplo n.º 7
0
class HttpConfig(PluginConfig):
    endpoint = Option(str)
    hmac_secret = Option(str, default=None)
    public_root = Option(str, default="")
Exemplo n.º 8
0
class DeployConfig(PluginConfig):
    channel = Option(str)
    deploy_ttl = Option(int)
    conch_emoji = Option(str, default=":shell:")
Exemplo n.º 9
0
class DeployConfig(PluginConfig):
    organizations = Option(tup)
Exemplo n.º 10
0
class AlertsConfig(PluginConfig):
    recipients = Option(tup, default=[])
    ttl = Option(int, default=300)
    max_mute_duration = Option(int, default=3600)
Exemplo n.º 11
0
class SmtpConfig(PluginConfig):
    host = Option(str)
    port = Option(int)
    use_ssl = Option(bool, default=True)
    username = Option(str)
    password = Option(str)
Exemplo n.º 12
0
class SlackConfig(PluginConfig):
    token = Option(str)