Sha256: e4488fa95479cc25837241851af8b8a21f484eb65bc81bca374c14916b65aab9

Contents?: true

Size: 1.32 KB

Versions: 14

Compression:

Stored size: 1.32 KB

Contents

<%
  @path = "/var/www/index.html"
  tools_host = rubber_instances.for_role('web_tools').first
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<title>Rubber Admin Tools</title>
	</head>
	<body>
		<h1>Rubber Admin Tools</h1>
		<ul>
      
      <%
        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
      %>
          <li><a href="<%= tool_path %>"><%= tool_name %></a></li>
      <% 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|
      %>
        <li><a href="https://<%= name %>.<%= tools_host.full_name %>:<%= rubber_env.web_tools_ssl_port %>/"><%= name.capitalize %></a></li>
      <% end %>

		</ul>
	</body>
</html>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rubber-2.0.1 templates/apache/config/rubber/role/web_tools/tools-index.html
rubber-2.0.0 templates/apache/config/rubber/role/web_tools/tools-index.html
rubber-2.0.0.pre12 templates/apache/config/rubber/role/web_tools/tools-index.html
rubber-2.0.0.pre11 templates/apache/config/rubber/role/web_tools/tools-index.html
rubber-2.0.0.pre10 templates/apache/config/rubber/role/web_tools/tools-index.html
rubber-2.0.0.pre9 templates/apache/config/rubber/role/web_tools/tools-index.html
rubber-2.0.0.pre8 templates/apache/config/rubber/role/web_tools/tools-index.html
rubber-2.0.0.pre7 templates/apache/config/rubber/role/web_tools/tools-index.html
rubber-2.0.0.pre6 templates/apache/config/rubber/role/web_tools/tools-index.html
rubber-2.0.0.pre5 templates/apache/config/rubber/role/web_tools/tools-index.html
rubber-2.0.0.pre4 templates/apache/config/rubber/role/web_tools/tools-index.html
rubber-2.0.0.pre3 templates/apache/config/rubber/role/web_tools/tools-index.html
rubber-2.0.0.pre2 templates/apache/config/rubber/role/web_tools/tools-index.html
rubber-2.0.0.pre1 templates/apache/config/rubber/role/web_tools/tools-index.html