Execute a ``rabbitmqctl`` command to list the given resources.

        :param resources: the resources to list, e.g. ``'vhosts'``
        :param args: a list of args for the command
        :param rabbitmqctl_opts:
            a list of extra options to pass to ``rabbitmqctl``
        :returns: a tuple of the command exit code and output

def exec_rabbitmqctl_list(self, resources, args=[],
                              rabbitmq_opts=['-q', '--no-table-headers']):
        """
        Execute a ``rabbitmqctl`` command to list the given resources.

        :param resources: the resources to list, e.g. ``'vhosts'``
        :param args: a list of args for the command
        :param rabbitmqctl_opts:
            a list of extra options to pass to ``rabbitmqctl``
        :returns: a tuple of the command exit code and output
        """
        command = 'list_{}'.format(resources)
        return self.exec_rabbitmqctl(command, args, rabbitmq_opts)