Skip to content

Instantly share code, notes, and snippets.

@hagzag
Created January 11, 2013 00:16
Show Gist options
  • Save hagzag/4506921 to your computer and use it in GitHub Desktop.
Save hagzag/4506921 to your computer and use it in GitHub Desktop.
<tomcat-users>
<% @roles.each do |role| -%>
<role rolename="<%= role %>" />
<% end -%>
<% @users.each do |user| -%>
<user username="<%= user['id'] %>" password="<%= user['password'] %>" roles="<%= user['roles'].join(', ') %>" />
<% end -%>
</tomcat-users>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment