torquebox-console 0.2.4 → 0.2.5
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.
|
@@ -32,7 +32,7 @@ module TorqueBox
|
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
def list_runtimes
|
|
35
|
-
service_registry =
|
|
35
|
+
service_registry = fetch("service-registry")
|
|
36
36
|
service_registry.service_names.to_a.map { |x| parse_pool_name(x) }.
|
|
37
37
|
reject(&:nil?).map { |app, runtime, svc_name| [app, runtime] }.sort
|
|
38
38
|
end
|
|
@@ -19,6 +19,7 @@ require 'torquebox-stomp'
|
|
|
19
19
|
require 'torquebox-console'
|
|
20
20
|
|
|
21
21
|
class TorqueBoxConsole < TorqueBox::Stomp::JmsStomplet
|
|
22
|
+
include TorqueBox::Injectors
|
|
22
23
|
|
|
23
24
|
def configure( options )
|
|
24
25
|
super
|
|
@@ -119,13 +120,13 @@ class TorqueBoxConsole < TorqueBox::Stomp::JmsStomplet
|
|
|
119
120
|
end
|
|
120
121
|
|
|
121
122
|
def lookup_runtime(app, name)
|
|
122
|
-
service_registry =
|
|
123
|
+
service_registry = fetch('service-registry')
|
|
123
124
|
service_name = nil
|
|
124
125
|
|
|
125
126
|
if app
|
|
126
127
|
_, _, service_name = list_runtimes.detect { |v| v[0] == app && v[1] == name }
|
|
127
128
|
else
|
|
128
|
-
unit =
|
|
129
|
+
unit = fetch('deployment-unit')
|
|
129
130
|
service_name = org.torquebox.core.as.CoreServices.runtimePoolName(unit, name)
|
|
130
131
|
end
|
|
131
132
|
|
|
@@ -137,7 +138,7 @@ class TorqueBoxConsole < TorqueBox::Stomp::JmsStomplet
|
|
|
137
138
|
end
|
|
138
139
|
|
|
139
140
|
def list_runtimes
|
|
140
|
-
service_registry =
|
|
141
|
+
service_registry = fetch("service-registry")
|
|
141
142
|
service_registry.service_names.to_a.map { |x| parse_pool_name(x) }.reject(&:nil?)
|
|
142
143
|
end
|
|
143
144
|
|
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: torquebox-console
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.4
|
|
5
4
|
prerelease:
|
|
5
|
+
version: 0.2.5
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Lance Ball
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-
|
|
12
|
+
date: 2013-04-01 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: TorqueBox Console allows you to peer into the TorqueBox guts using a repl command line. You can view information about the components and applications you have running.
|
|
15
15
|
email: lball@redhat.com
|
|
@@ -2893,6 +2893,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
2893
2893
|
requirements:
|
|
2894
2894
|
- - ">="
|
|
2895
2895
|
- !ruby/object:Gem::Version
|
|
2896
|
+
segments:
|
|
2897
|
+
- 0
|
|
2898
|
+
hash: 2
|
|
2896
2899
|
version: !binary |-
|
|
2897
2900
|
MA==
|
|
2898
2901
|
none: false
|