%
@path = "/var/www/index.html"
tools_host = rubber_instances.for_role('web_tools').first
%>
Rubber Admin Tools
Rubber Admin Tools
<%
tools_html_path = "/var/www"
tools_html_prefix = "#{tools_html_path}/rubber-web-tools-"
Dir["#{tools_html_prefix}*.html"].each do |tools_file|
tool_path = tools_file.gsub(tools_html_path, '')
tool_name = tools_file.gsub(tools_html_prefix, '').split('.').first
tool_name = tool_name.capitalize
%>
- <%= tool_name %>
<% end %>
<%
# add the ip aliases for web tools hosts so we can map internal tools
# to their own vhost to make proxying easier (rewriting url paths for
# proxy is a real pain, e.g. '/graphite/' externally to '/' on the
# graphite web app)
Array(rubber_env.web_tools_proxies).each do |name, settings|
%>
- <%= name.capitalize %>
<% end %>