'Returns `True` if rule matches the command.
:type command: Command
:rtype: bool'

def is_match(self, command):

    script_only = ((command.stdout is None) and (command.stderr is None))
    if (script_only and self.requires_output):
        return False
    try:
        with logs.debug_time(u'Trying    rule:    {};'.format(self.name)):
            if self.match(command):
                return True
    except Exception:
        logs.rule_failed(self, sys.exc_info())
