Sha256: 0cdba3f9a2da388f713dcafcb98b29d5e3a49ef4ec894429177d9f88758cdc38

Contents?: true

Size: 1.17 KB

Versions: 28

Compression:

Stored size: 1.17 KB

Contents

<% @subtabs = %w( resque redis keys ) %>

<% if params[:key] %>

  <%= render(:partial =>  'key') %>

<% elsif params[:id] == "resque" %>

  <h1><%= resque %></h1>
  <table class='stats'>
  <% for key, value in resque.info.to_a.sort_by { |i| i[0].to_s } %>
    <tr>
      <th>
        <%= key %>
      </th>
      <td>
        <%= value %>
      </td>
    </tr>
  <% end %>
  </table>

<% elsif params[:id] == 'redis' %>

  <h1><%= resque.redis_id %></h1>
  <table class='stats'>
  <% for key, value in resque.redis.info.to_a.sort_by { |i| i[0].to_s } %>
    <tr>
      <th>
        <%= key %>
      </th>
      <td>
        <%= value %>
      </td>
    </tr>
  <% end %>
  </table>

<% elsif params[:id] == 'keys' %>

  <h1>Keys owned by <%= resque %></h1>
  <p class='sub'>(All keys are actually prefixed with "resque:")</p>
  <table class='stats'>
    <tr>
      <th>key</th>
      <th>type</th>
      <th>size</th>
    </tr>
  <% for key in resque.keys.sort %>
    <tr>
      <th>
        <%= link_to(key, "/resque/stats/keys?key=#{key}") %>
      </th>
      <td><%= resque.redis.type key %></td>
      <td><%= redis_get_size key %></td>
    </tr>
  <% end %>
  </table>

<% else %>

<% end %>

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
resque_manager-3.3.13 app/views/resque_manager/resque/stats.html.erb
resque_manager-3.3.12 app/views/resque_manager/resque/stats.html.erb
resque_manager-3.3.11 app/views/resque_manager/resque/stats.html.erb
resque_manager-3.3.10 app/views/resque_manager/resque/stats.html.erb
resque_manager-3.3.9 app/views/resque_manager/resque/stats.html.erb
resque_manager-3.3.8 app/views/resque_manager/resque/stats.html.erb
resque_manager-3.3.7 app/views/resque_manager/resque/stats.html.erb
resque_manager-3.3.6 app/views/resque_manager/resque/stats.html.erb
resque_manager-3.3.5 app/views/resque_manager/resque/stats.html.erb
resque_manager-3.3.4 app/views/resque_manager/resque/stats.html.erb
resque_manager-3.3.3 app/views/resque_manager/resque/stats.html.erb
resque_manager-3.3.2 app/views/resque_manager/resque/stats.html.erb
resque_manager-3.3.1 app/views/resque_manager/resque/stats.html.erb
resque_manager-3.3.0 app/views/resque_manager/resque/stats.html.erb
resque_ui-3.2.4 app/views/resque/stats.html.erb
resque_ui-3.2.3 app/views/resque/stats.html.erb
resque_ui-3.2.2 app/views/resque/stats.html.erb
resque_ui-3.2.1 app/views/resque/stats.html.erb
resque_ui-3.2.0 app/views/resque/stats.html.erb
resque_ui-3.1.7 app/views/resque/stats.html.erb