Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Support a string for a single key or an array.
  • Loading branch information
Matt Whiteley authored and jtimberman committed Feb 13, 2012
1 parent 8f993a6 commit ed137c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion users/templates/default/authorized_keys.erb
@@ -1,2 +1,5 @@
# Dropped off by Chef, thanks!
<%= @ssh_keys %>
<% key_list = @ssh_keys.kind_of?(Array) ? @ssh_keys : [ @ssh_keys ] %>
<% key_list.each do |key| %>
<%= key %>
<% end %>

0 comments on commit ed137c7

Please sign in to comment.