def deploy_list(usr_platform = None):
    """ Simple function for dumping all deployers for supported
    platforms.  This lists them in the format INTERFACE (name), where
    name is used for matching.
    """

    for platform in state.supported_platforms:

        # check for a specified platform
        if usr_platform != 'All' and usr_platform != platform:
            continue

        utility.Msg("Deployers for '%s'" % platform, LOG.UPDATE)
        load = importlib.import_module('src.platform.%s.deployers' % platform)

        # load all deployers
        modules = list(pkgutil.iter_modules(load.__path__))
        if len(modules) <= 0:
            utility.Msg("\tNo deployers found.")
            continue

        for deployer in modules:

            try:
                dp = deployer[0].find_module(deployer[1]).load_module(deployer[1])
                if 'Any' in dp.versions: dp.versions.remove("Any") # used for FP only
                utility.Msg("\t%s (%s [%s])" % (dp.title, deployer[1], 
                                                '|'.join(dp.versions)))

            except Exception, e:
                utility.Msg(e, LOG.DEBUG)
                continue
dataset/ETHPy150Open hatRiot/clusterd/src/module/deploy_utils.py/deploy_list/original