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')
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)
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()
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)
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)
class JabberConfig(PluginConfig): host = Option(str) port = Option(int, default=5222) id = Option(str) password = Option(str)
class HttpConfig(PluginConfig): endpoint = Option(str) hmac_secret = Option(str, default=None) public_root = Option(str, default="")
class DeployConfig(PluginConfig): channel = Option(str) deploy_ttl = Option(int) conch_emoji = Option(str, default=":shell:")
class DeployConfig(PluginConfig): organizations = Option(tup)
class AlertsConfig(PluginConfig): recipients = Option(tup, default=[]) ttl = Option(int, default=300) max_mute_duration = Option(int, default=3600)
class SmtpConfig(PluginConfig): host = Option(str) port = Option(int) use_ssl = Option(bool, default=True) username = Option(str) password = Option(str)
class SlackConfig(PluginConfig): token = Option(str)