예제 #1
0
class ConfigCmd(Cmd):
    """ Setup Config Cmd """
    name = "config"

    def __init__(self, args):
        super().__init__(args)
        self.kafka = Kafka(args.config)

    def process(self):
        # TODO: Add actions here
        rc = self.kafka.config()
        return rc
예제 #2
0
class ConfigCmd(Cmd):
    """ Setup Config Cmd """
    name = "config"

    def __init__(self, args):
        super().__init__(args)
        self.kafka = Kafka()

    def process(self, *args, **kwargs):
        kafka_servers = args[0]
        rc = self.kafka.config(kafka_servers)
        return rc