Skip to content

Instantly share code, notes, and snippets.

@antaflos
Created July 23, 2012 17:44
Show Gist options
  • Save antaflos/3164937 to your computer and use it in GitHub Desktop.
Save antaflos/3164937 to your computer and use it in GitHub Desktop.
augeas erb iteration
rm sasl_allowed_username_list
<% i = 0 %>
<% sasl_allowed_usernames.each do |username| -%>
<% i += 1 %>
set sasl_allowed_username_list/<% sprintf("%02d", i) -%> <%= username %>
<% end -%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment