Example #1
0
    def emit(self, record):
        """Sends the record info to Gitter."""
        msg = str(self.format(record))
        if record.exc_info:
            exc = logging._defaultFormatter.formatException(record.exc_info)
            msg += "\n" + exc

        log_to_gitter(msg)
    def emit(self, record):
        """Sends the record info to Gitter."""
        msg = str(self.format(record))
        if record.exc_info:
            exc = logging._defaultFormatter.formatException(record.exc_info)
            msg += "\n" + exc

        log_to_gitter(msg)
Example #3
0
def submit_plugin():
    plugin_data = flask.request.form.to_dict()
    plugin_data['tags'] = json.loads(plugin_data['tags'])
    db.submitted_plugins.insert(plugin_data)

    plugin_markdown = "```\n%s\n```" % json.dumps(plugin_data, indent=4)

    util.log_to_gitter("Someone just submitted a plugin!\n%s" % plugin_markdown)

    return flask.redirect('/thanks-for-submitting')
Example #4
0
def submit_plugin():
    plugin_data = flask.request.form.to_dict()
    plugin_data['tags'] = json.loads(plugin_data['tags'])
    db.submitted_plugins.insert(plugin_data)

    plugin_markdown = "```\n%s\n```" % json.dumps(plugin_data, indent=4)

    util.log_to_gitter("Someone just submitted a plugin!\n%s" %
                       plugin_markdown)

    return flask.redirect('/thanks-for-submitting')
Example #5
0
def notify_gitter(deployer):
    message = '%s just deployed to vimawesome.com' % deployer
    log_to_gitter(message)
    print 'Message sent to Gitter: %s' % message