Tilt Output formatting.
This commit is contained in:
Родитель
0063f69c89
Коммит
e24aec8268
|
@ -1,4 +1,6 @@
|
|||
<%="Listing affinity groups".bold%><%index=1%>
|
||||
<%="Listing affinity groups".bold%>
|
||||
<%index=1%>
|
||||
|
||||
<%affinity_groups.each do |ag|%>
|
||||
<%="Affinity Group: #{index}".bold%>
|
||||
<%="Name".fix(20)%>: <%=ag.name %>
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
<%="Listing Firewall".bold%><%index=1%>
|
||||
<%="Listing Firewall".bold%>
|
||||
<%index=1%>
|
||||
|
||||
<%firewalls.each do |firewall|%>
|
||||
<%="Firewall: #{index}".bold%>
|
||||
<%="Rule Name".fix(20)%>: <%=firewall[:rule] %>
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
<%if db_servers.class == Azure::SqlDatabaseManagement::SqlDatabase%>
|
||||
|
||||
<%="Server Name".fix(20)%>: <%=db_servers.name %>
|
||||
<%="Administrator login".fix(20)%>: <%=db_servers.administrator_login%>
|
||||
<%="Location".fix(20)%>: <%=db_servers.location %>
|
||||
<%else%>
|
||||
<%="Listing Servers".bold%><%index=1%>
|
||||
<%="Listing Servers".bold%>
|
||||
<%index=1%>
|
||||
|
||||
<%db_servers.each do |server|%>
|
||||
<%="Server: #{index}".bold%>
|
||||
<%="Server Name".fix(20)%>: <%=server.name %>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# encoding: UTF-8
|
||||
require 'tilt'
|
||||
|
||||
Puppet::Face.define :azure_vnet, '1.0.0' do
|
||||
action :list do
|
||||
|
|
Загрузка…
Ссылка в новой задаче