runit-man 1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/sv/run ADDED
@@ -0,0 +1,3 @@
1
+ #!/bin/sh
2
+ exec 2>&1
3
+ exec runit-man.rb -p 14230
@@ -0,0 +1,3 @@
1
+ <form class="service-action" action="<%= h(name) %>/<%= h(action) %>" method="POST">
2
+ <input type="submit" value="<%= h(label) %>" />
3
+ </form>
@@ -0,0 +1,29 @@
1
+ <tr class="<%= even_or_odd ? 'even' : 'odd' %>">
2
+ <td><%= h(service_info.pid) %></td>
3
+ <th scope="row"><%= h(service_info.name) %></th>
4
+ <td><%= stat_subst(service_info.stat) %></td>
5
+ <td>
6
+ <% if service_info.active? %>
7
+ <% if service_info.run? %>
8
+ <%= service_action service_info.name, :restart, t.runit.services.table.actions.restart %>
9
+ <%= service_action service_info.name, :down, t.runit.services.table.actions.stop %>
10
+ <% else %>
11
+ <%= service_action service_info.name, :up, t.runit.services.table.actions.start %>
12
+ <% end %>
13
+ <% if service_info.switchable? %>
14
+ <%= service_action service_info.name, :switch_down, t.runit.services.table.actions.switch_down %>
15
+ <% end %>
16
+ <% else %>
17
+ <% if service_info.switchable? %>
18
+ <%= service_action service_info.name, :switch_up, t.runit.services.table.actions.switch_up %>
19
+ <% end %>
20
+ <% end %>
21
+ </td>
22
+ <td>
23
+ <% if service_info.logged? %>
24
+ <a title="<%= h(t.runit.services.table.values.log_hint(service_info.name)) %>" target="_blank" rel="nofollow" href="/<%= h(service_info.name) %>/log#footer"><%= h(service_info.log_file_location) %></a>
25
+ <% else %>
26
+ <%= t.runit.services.table.values.log_absent %>
27
+ <% end %>
28
+ </td>
29
+ </tr>
@@ -0,0 +1,20 @@
1
+ <table>
2
+ <caption><%= h(t.runit.services.table.caption) %></caption>
3
+ <thead>
4
+ <tr>
5
+ <th><%= h(t.runit.services.table.headers.pid) %></th>
6
+ <th><%= h(t.runit.services.table.headers.name) %></th>
7
+ <th><%= h(t.runit.services.table.headers.stat) %></th>
8
+ <th><%= h(t.runit.services.table.headers.actions) %></th>
9
+ <th><%= h(t.runit.services.table.headers.log_file) %></th>
10
+ </tr>
11
+ </thead>
12
+ <tfoot>
13
+ <tr>
14
+ <td colspan="5"><%= t.runit.services.table.footer(h(Time.now.utc)) %></td>
15
+ </tr>
16
+ </tfoot>
17
+ <tbody>
18
+ <%= partial(:service_info, :collection => service_infos) %>
19
+ </tbody>
20
+ </table>
@@ -0,0 +1,14 @@
1
+ <% content_for :content do %>
2
+ <div id="error" class="error">
3
+ <%= h(t.runit.error('<span id="url"></span>')) %>.
4
+ </div>
5
+ <div id="services">
6
+ <%= t.runit.loading %>
7
+ </div>
8
+ <% end %>
9
+ <% content_for :footer do %>
10
+ <p>
11
+ <%= t.runit.footer('<span id="service-refresh-interval">?</span>') %>
12
+ </p>
13
+ <% end %>
14
+ <% @scripts << 'runit-man' %>
@@ -0,0 +1,33 @@
1
+ <html>
2
+ <head>
3
+ <title><%= h(t.runit.title(@title, t.runit.label)) %></title>
4
+ <link href="/css/tripoli.simple.css" type="text/css" rel="stylesheet" />
5
+ <link href="/css/tripoli.visual.css" type="text/css" rel="stylesheet" />
6
+ <link href="/css/tripoli.type.css" type="text/css" rel="stylesheet" />
7
+ <!--[if IE]><link href="/css/tripoli.simple.ie.css" type="text/css" rel="stylesheet" /><![endif]-->
8
+ <link href="/css/runit-man.css" type="text/css" rel="stylesheet" />
9
+ </head>
10
+ <body>
11
+ <div id="container">
12
+ <div id="header">
13
+ <div class="content">
14
+ <strong><%= h(t.runit.header(host_name, t.runit.label)) %></strong>
15
+ </div>
16
+ </div>
17
+
18
+ <div class="content">
19
+ <% yield_content :content %>
20
+ </div>
21
+
22
+ <div id="footer">
23
+ <div class="content">
24
+ <% yield_content :footer %>
25
+ </div>
26
+ </div>
27
+
28
+ </div>
29
+ <% @scripts.each do |name| %>
30
+ <script type="text/javascript" src="/js/<%= h(name) %>.js"></script>
31
+ <% end %>
32
+ </body>
33
+ </html>
@@ -0,0 +1,9 @@
1
+ <% content_for :content do %>
2
+ <%= t.runit.services.log.header(h(name), h(host_name)) %>
3
+ <pre><%= h(text) %></pre>
4
+ <% end %>
5
+ <% content_for :footer do %>
6
+ <p>
7
+ <%= t.runit.services.log.updated(Time.now.utc) %> <a href="javascript:;" rel="nofollow" onclick="window.location.reload()"><%= t.runit.services.log.reload %></a>
8
+ </p>
9
+ <% end %>
metadata ADDED
@@ -0,0 +1,159 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: runit-man
3
+ version: !ruby/object:Gem::Version
4
+ version: "1.2"
5
+ platform: ruby
6
+ authors:
7
+ - Akzhan Abdulin
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2010-02-17 00:00:00 +03:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: json
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: erubis
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: sinatra
37
+ type: :runtime
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: "0"
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: sinatra-content-for
47
+ type: :runtime
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: "0"
54
+ version:
55
+ - !ruby/object:Gem::Dependency
56
+ name: sinatra-r18n
57
+ type: :runtime
58
+ version_requirement:
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: "0"
64
+ version:
65
+ - !ruby/object:Gem::Dependency
66
+ name: rspec
67
+ type: :development
68
+ version_requirement:
69
+ version_requirements: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: "0"
74
+ version:
75
+ - !ruby/object:Gem::Dependency
76
+ name: rr
77
+ type: :development
78
+ version_requirement:
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: "0"
84
+ version:
85
+ - !ruby/object:Gem::Dependency
86
+ name: rack-test
87
+ type: :development
88
+ version_requirement:
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: "0"
94
+ version:
95
+ description: |
96
+ runit-man is simple web frontend for runit.
97
+
98
+ email: akzhan.abdulin@gmail.com
99
+ executables:
100
+ - runit-man.rb
101
+ extensions: []
102
+
103
+ extra_rdoc_files: []
104
+
105
+ files:
106
+ - bin/runit-man.rb
107
+ - lib/runit-man/partials.rb
108
+ - lib/runit-man/service_info.rb
109
+ - lib/runit-man/erb-to-erubis.rb
110
+ - lib/runit-man/app.rb
111
+ - lib/runit-man/helpers.rb
112
+ - lib/runit-man/log_location_cache.rb
113
+ - public/js/runit-man.js
114
+ - public/js/jquery-1.4.1.min.js
115
+ - public/css/tripoli.simple.ie.css
116
+ - public/css/tripoli.simple.css
117
+ - public/css/runit-man.css
118
+ - public/css/tripoli.visual.css
119
+ - public/css/tripoli.type.css
120
+ - views/log.erb
121
+ - views/layout.erb
122
+ - views/index.erb
123
+ - views/_services.erb
124
+ - views/_service_action.erb
125
+ - views/_service_info.erb
126
+ - i18n/ru.yml
127
+ - i18n/en.yml
128
+ - sv/run
129
+ - sv/log/run
130
+ has_rdoc: true
131
+ homepage:
132
+ licenses: []
133
+
134
+ post_install_message:
135
+ rdoc_options: []
136
+
137
+ require_paths:
138
+ - lib
139
+ required_ruby_version: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ version: "0"
144
+ version:
145
+ required_rubygems_version: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ version: "0"
150
+ version:
151
+ requirements:
152
+ - none
153
+ rubyforge_project:
154
+ rubygems_version: 1.3.5
155
+ signing_key:
156
+ specification_version: 3
157
+ summary: Runit web management tool.
158
+ test_files: []
159
+