oxidized-web 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of oxidized-web might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/oxidized/web/views/stats.haml +23 -0
- data/lib/oxidized/web/webapp.rb +8 -1
- data/oxidized-web.gemspec +2 -2
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 718bec64d63397b38a6bb90009f7b572441bc1fe
|
4
|
+
data.tar.gz: efeece58702e4cc3127327c5ea4c5e1bf26b8baf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 590704d01ca7380536100d51c644c784b9df0b82b929d0e133d64a2b71514cb3ed1f5e3154e006e11df82a5e204f2a3641bd66e5e9780f9096f1aed29c8ed3a4
|
7
|
+
data.tar.gz: f3202b617bfddb9a154fb5069ac89c75a50564f2ad719eb27cf949339a42018b6fd4046938517588da505fa2d7cf8ff9be6f4b400195b05ba6f223d4986decff
|
@@ -0,0 +1,23 @@
|
|
1
|
+
%html
|
2
|
+
!=haml :head
|
3
|
+
%body
|
4
|
+
%h1 no success in a day
|
5
|
+
%table{:id=>'statsTable', :class=>'center tablesorter'}
|
6
|
+
%thead
|
7
|
+
%tr
|
8
|
+
%th Name
|
9
|
+
%th Last success
|
10
|
+
%tbody
|
11
|
+
-@data.select do |node,stats|
|
12
|
+
- not stats[:success] or (stats[:success].last[:end] < Time.now.utc-60*60*24)
|
13
|
+
- end.map do |node,stats|
|
14
|
+
- last = stats[:success]
|
15
|
+
- last = last.last[:end] if last
|
16
|
+
- last ||= 'never'
|
17
|
+
%tr
|
18
|
+
%td= node
|
19
|
+
%td= last
|
20
|
+
:javascript
|
21
|
+
$(function(){
|
22
|
+
$("#statsTable").tablesorter();
|
23
|
+
});
|
data/lib/oxidized/web/webapp.rb
CHANGED
@@ -25,13 +25,20 @@ module Oxidized
|
|
25
25
|
out :nodes
|
26
26
|
end
|
27
27
|
|
28
|
+
get '/nodes/stats.?:format?' do
|
29
|
+
@data = {}
|
30
|
+
nodes.each do |node|
|
31
|
+
@data[node.name] = node.stats.get
|
32
|
+
end
|
33
|
+
out :stats
|
34
|
+
end
|
35
|
+
|
28
36
|
get '/reload.?:format?' do
|
29
37
|
nodes.load
|
30
38
|
@data = 'reloaded list of nodes'
|
31
39
|
out
|
32
40
|
end
|
33
41
|
|
34
|
-
|
35
42
|
get '/node/fetch/:node' do
|
36
43
|
node, @json = route_parse :node
|
37
44
|
@data = nodes.fetch node, nil
|
data/oxidized-web.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'oxidized-web'
|
3
|
-
s.version = '0.0.
|
3
|
+
s.version = '0.0.3'
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.authors = [ 'Saku Ytti' ]
|
6
6
|
s.email = %w( saku@ytti.fi )
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.executables = %w( )
|
13
13
|
s.require_path = 'lib'
|
14
14
|
|
15
|
-
s.add_dependency 'oxidized', '>= 0.0.
|
15
|
+
s.add_dependency 'oxidized', '>= 0.0.57'
|
16
16
|
s.add_dependency 'puma'
|
17
17
|
s.add_dependency 'sinatra'
|
18
18
|
s.add_dependency 'sinatra-contrib'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oxidized-web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Saku Ytti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oxidized
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.0.
|
19
|
+
version: 0.0.57
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.0.
|
26
|
+
version: 0.0.57
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: puma
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -111,6 +111,7 @@ files:
|
|
111
111
|
- lib/oxidized/web/views/node.haml
|
112
112
|
- lib/oxidized/web/views/nodes.haml
|
113
113
|
- lib/oxidized/web/views/oxidized.sass
|
114
|
+
- lib/oxidized/web/views/stats.haml
|
114
115
|
- lib/oxidized/web/webapp.rb
|
115
116
|
- oxidized-web.gemspec
|
116
117
|
homepage: http://github.com/ytti/oxidized-web
|