def evaluate_template(template, info, components, args, account_info): data = {"SenzaInfo": info, "SenzaComponents": components, "Arguments": args, "AccountInfo": account_info} result = pystache_render(template, data) return result
def generate_definition(variables): """ >>> variables = set_default_variables(dict()) >>> len(generate_definition(variables)) > 300 True """ definition_yaml = pystache_render(TEMPLATE, variables) return definition_yaml
def evaluate_template(template, info, components, args, account_info): data = { "SenzaInfo": info, "SenzaComponents": components, "Arguments": args, "AccountInfo": account_info } result = pystache_render(template, data) return result
def generate_definition(variables): definition_yaml = pystache_render(TEMPLATE, variables) return definition_yaml
def generate_definition(variables): """ Generates the redis node definition yaml from template """ definition_yaml = pystache_render(TEMPLATE, variables) return definition_yaml