torquebox-webconsole 0.1.1 → 0.2.0
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.
- checksums.yaml +7 -0
- data/lib/torquebox/webconsole.rb +5 -6
- data/lib/torquebox/webconsole/version.rb +1 -1
- metadata +54 -61
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: bdf2c24b08c3bd1a49990cbbc76fcc8cb0446a09
|
4
|
+
data.tar.gz: 00d89b2b84f9fa0b2824d763ca4f047b1d4e96c4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b18a35c580ef913630886471bee111b56e979b488087a52bedb6c98242a3381be940c9b4b27c205338a7d4813a0b45a31a55e032470e341fb2d97d3d4269150e
|
7
|
+
data.tar.gz: 6066397457889f6e9bd4cc3be70d0936f614bd5b74e5a2c0bcf0fcb0a296b89bdf3a65dc01dac259d506422ab6bc67a8c43b90c5420c29f78ce77115ecd74538
|
data/lib/torquebox/webconsole.rb
CHANGED
@@ -5,12 +5,11 @@ require 'torquebox'
|
|
5
5
|
|
6
6
|
module TorqueBox
|
7
7
|
class Webconsole
|
8
|
-
extend TorqueBox::Injectors
|
9
8
|
class << self
|
10
|
-
|
9
|
+
|
11
10
|
def lookup_runtime(name)
|
12
|
-
service_registry =
|
13
|
-
unit =
|
11
|
+
service_registry = TorqueBox.fetch('service-registry')
|
12
|
+
unit = TorqueBox.fetch('deployment-unit')
|
14
13
|
|
15
14
|
service_name = org.torquebox.core.as.CoreServices.runtimePoolName(unit, name)
|
16
15
|
service_controller = service_registry.get_service(service_name)
|
@@ -27,13 +26,13 @@ module TorqueBox
|
|
27
26
|
end
|
28
27
|
|
29
28
|
def list_runtimes
|
30
|
-
prefix =
|
29
|
+
prefix = TorqueBox.fetch('deployment-unit').
|
31
30
|
service_name.
|
32
31
|
append(org.torquebox.core.as.CoreServices::RUNTIME).
|
33
32
|
append("pool").
|
34
33
|
canonical_name
|
35
34
|
|
36
|
-
|
35
|
+
TorqueBox.fetch('service-registry').service_names.to_a.map do |x|
|
37
36
|
$1 if x.canonical_name =~ %r{#{prefix}\.([^.]+)$}
|
38
37
|
end.reject(&:nil?)
|
39
38
|
end
|
metadata
CHANGED
@@ -1,75 +1,68 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: torquebox-webconsole
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.1.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
6
5
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
|
9
|
-
|
10
|
-
autorequire:
|
6
|
+
authors:
|
7
|
+
- Ben Browning
|
8
|
+
- Tobias Crawley
|
9
|
+
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
12
|
+
date: 2013-11-26 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: tobias-rack-webconsole
|
16
|
+
version_requirements: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - '='
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 0.1.5
|
21
|
+
requirement: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - '='
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: 0.1.5
|
26
|
+
prerelease: false
|
27
|
+
type: :runtime
|
27
28
|
description: Extends rack-webconsole to allow switching between TorqueBox app runtimes.
|
28
|
-
email:
|
29
|
-
|
30
|
-
|
29
|
+
email:
|
30
|
+
- bbrowning@redhat.com
|
31
|
+
- tcrawley@redhat.com
|
31
32
|
executables: []
|
32
|
-
|
33
33
|
extensions: []
|
34
|
-
|
35
34
|
extra_rdoc_files: []
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
- torquebox-webconsole.gemspec
|
35
|
+
files:
|
36
|
+
- .gitignore
|
37
|
+
- Gemfile
|
38
|
+
- LICENSE
|
39
|
+
- README.md
|
40
|
+
- Rakefile
|
41
|
+
- lib/torquebox/webconsole.rb
|
42
|
+
- lib/torquebox/webconsole/rack-webconsole-patch.rb
|
43
|
+
- lib/torquebox/webconsole/version.rb
|
44
|
+
- torquebox-webconsole.gemspec
|
47
45
|
homepage: https://github.com/torquebox/torquebox-webconsole
|
48
46
|
licenses: []
|
49
|
-
|
50
|
-
post_install_message:
|
47
|
+
metadata: {}
|
48
|
+
post_install_message:
|
51
49
|
rdoc_options: []
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
- - ">="
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version: "0"
|
50
|
+
require_paths:
|
51
|
+
- lib
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
67
62
|
requirements: []
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
specification_version: 3
|
63
|
+
rubyforge_project:
|
64
|
+
rubygems_version: 2.1.9
|
65
|
+
signing_key:
|
66
|
+
specification_version: 4
|
73
67
|
summary: Extends rack-webconsole to allow switching between TorqueBox app runtimes.
|
74
68
|
test_files: []
|
75
|
-
|