lib/occi/cli/templates/resources.erb
<%- # We always get Occi::Core::Resources -%>
<%- unless occi_resources.blank? -%><%= '#' * (HighLine::SystemExtensions.terminal_size.first - 1) %><%- end %>
<%- occi_resources.each do |resource| -%>
[[ <%= resource.kind.type_identifier %> ]]
>> location: <%= resource.location %>
<%- resource.attributes.names.each_pair do |attribute, value| -%>
<%= attribute %> = <%= value %>
<%- end -%>
Links:
<%- resource.links.to_a.reject { |l| l.rel && l.rel.to_s.match(/^\S+\/action#\S+$/) }.each do |link| %>
[[ <%= link.kind.type_identifier %> ]]
>> location: <%= link.location %>
<%- link.attributes.names.each_pair do |attribute, value| -%>
<%= attribute %> = <%= value %>
<%- end -%>
<%- end -%>
Mixins:
<%- resource.mixins.each do |mixin| %>
[[ <%= mixin.type_identifier %> ]]
title: <%= mixin.title %>
term: <%= mixin.term %>
location: <%= mixin.location %>
<%- end -%>
Actions:
<%- resource.actions.each do |action| %>
[[ <%= action.type_identifier %> ]]
<%- end -%>
<%= '#' * (HighLine::SystemExtensions.terminal_size.first - 1) -%>
<%- end -%>