torquebox-backstage 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +3 -0
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/public/ajax-loader.gif +0 -0
- data/public/app.js +27 -0
- metadata +3 -1
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
@@ -20,7 +20,7 @@ Jeweler::Tasks.new do |gem|
|
|
20
20
|
gem.description = %Q{BackStage allows you to look behind the TorqueBox curtain, and view information about all of the components you have running. It includes support for remote code execution and log tailing to aid in debugging.}
|
21
21
|
gem.email = "tcrawley@redhat.com"
|
22
22
|
gem.authors = ["Tobias Crawley"]
|
23
|
-
gem.files = FileList["[A-Z]*", 'backstage.rb', 'config.ru', 'bin/*.rb', "{config,lib,spec,views}/**/*"]
|
23
|
+
gem.files = FileList["[A-Z]*", 'backstage.rb', 'config.ru', 'bin/*.rb', "{config,lib,spec,views,public}/**/*"]
|
24
24
|
gem.executables = %w{backstage}
|
25
25
|
# Include your dependencies below. Runtime dependencies are required when using your gem,
|
26
26
|
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
Binary file
|
data/public/app.js
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
$(document).ajaxStart(function() {
|
2
|
+
$('#ajax-spinner').show()
|
3
|
+
})
|
4
|
+
|
5
|
+
$(document).ajaxStop(function() {
|
6
|
+
$('#ajax-spinner').hide()
|
7
|
+
})
|
8
|
+
|
9
|
+
|
10
|
+
function tail_log(url, offset, tailing) {
|
11
|
+
var params = {offset: offset}
|
12
|
+
$.post(url, params, function(data) {
|
13
|
+
logs = $('#log_output')
|
14
|
+
if (logs.text().trim() == 'Fetching log...') {
|
15
|
+
logs.html('')
|
16
|
+
}
|
17
|
+
if (data.lines.length > 0) {
|
18
|
+
logs.html(logs.html() + data.lines.join(""))
|
19
|
+
if (tailing) {
|
20
|
+
//logs.animate({scrollTop: logs.attr("scrollHeight")}, 10)
|
21
|
+
}
|
22
|
+
}
|
23
|
+
if (tailing || data.lines.length > 0) {
|
24
|
+
setTimeout("tail_log('" + url + "', " + data.offset + ", + " + tailing + ")", 5000)
|
25
|
+
}
|
26
|
+
}, "json")
|
27
|
+
}
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: torquebox-backstage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.3.
|
5
|
+
version: 0.3.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Tobias Crawley
|
@@ -244,6 +244,8 @@ files:
|
|
244
244
|
- lib/services/routes.rb
|
245
245
|
- lib/torquebox_managed.rb
|
246
246
|
- lib/util.rb
|
247
|
+
- public/ajax-loader.gif
|
248
|
+
- public/app.js
|
247
249
|
- spec/api_spec.rb
|
248
250
|
- spec/app_spec.rb
|
249
251
|
- spec/auth_spec.rb
|