def list(cfg): what = cfg.opts("system", "list.config.option") if what == "telemetry": telemetry.list_telemetry(cfg) elif what == "tracks": track.list_tracks(cfg) elif what == "pipelines": racecontrol.list_pipelines() elif what == "races": metrics.list_races(cfg) elif what == "cars": car.list_cars() else: raise exceptions.ImproperlyConfigured("Cannot list unknown configuration option [%s]" % what)
def dispatch_list(cfg): what = cfg.opts("system", "list.config.option") if what == "telemetry": telemetry.list_telemetry() elif what == "tracks": track.list_tracks(cfg) elif what == "pipelines": racecontrol.list_pipelines() elif what == "races": metrics.list_races(cfg) elif what == "cars": team.list_cars(cfg) elif what == "elasticsearch-plugins": team.list_plugins(cfg) else: raise exceptions.SystemSetupError("Cannot list unknown configuration option [%s]" % what)
def list(cfg): what = cfg.opts("system", "list.config.option") if what == "telemetry": telemetry.list_telemetry() elif what == "tracks": track.list_tracks(cfg) elif what == "pipelines": racecontrol.list_pipelines() elif what == "races": metrics.list_races(cfg) elif what == "cars": car.list_cars() elif what == "facts": with_actor_system(lambda c: facts.list_facts(cfg), cfg) else: raise exceptions.SystemSetupError("Cannot list unknown configuration option [%s]" % what)
def list(cfg): what = cfg.opts("system", "list.config.option") if what == "telemetry": telemetry.list_telemetry() elif what == "tracks": track.list_tracks(cfg) elif what == "pipelines": racecontrol.list_pipelines() elif what == "races": metrics.list_races(cfg) elif what == "cars": team.list_cars(cfg) elif what == "elasticsearch-plugins": team.list_plugins(cfg) else: raise exceptions.SystemSetupError("Cannot list unknown configuration option [%s]" % what)