onddo/ssh_authorized_keys-cookbook

View on GitHub
templates/authorized_keys.erb

Summary

Maintainability
Test Coverage
<%
  self.class.send(:include, ::SshAuthorizedKeysCookbook::TemplateHelpers)
-%># Generated by Chef
<% @keys.each do |_name, ssh_key| -%>
<% if ssh_key[:validate_key] == false %>
<%= ssh_key[:key] %>
<% else %>
<%= "#{render_options(ssh_key[:options])} " if ssh_key[:options].is_a?(Hash)
%><%= render_key(ssh_key[:keytype], ssh_key[:key], ssh_key[:comment]) %>
<% end -%>
<% end %>