'Returns a ranked list of vhosts that match target_name.
The ranking gives preference to SSL vhosts.
:param str target_name: The name to match
:returns: list of dicts containing the vhost, the matching name, and
the numerical rank
:rtype: list'

def _get_ranked_matches(self, target_name):

    vhost_list = self.parser.get_vhosts()
    return self._rank_matches_by_name_and_ssl(vhost_list, target_name)
