def get_command(self, name):
def command(options):<EOL><INDENT>client = ZookeeperClient(<EOL>"<STR_LIT>" % (options.pop('<STR_LIT:host>'), options.pop('<STR_LIT:port>')),<EOL>session_timeout=<NUM_LIT:1000><EOL>)<EOL>path = options.pop('<STR_LIT>')<EOL>force = options.pop('<STR_LIT>')<EOL>extra = options.pop('<STR_LIT>')<EOL>options.update(extra)<EOL>controller = Command(client, path, self.services, force)<EOL>method = getattr(controller, "<STR_LIT>" % name)<EOL>return method(**options)<EOL><DEDENT>return command<EOL>
Wrap command class in constructor.