torquebox-backstage 1.0.7 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b99fe151b30efff592bac4b413b6f6754c555885
4
+ data.tar.gz: 055358979efbcce6f2ca2c3967cd7fac25c15633
5
+ SHA512:
6
+ metadata.gz: 60cc06ac830dca8cb5ff85e32e2f617f8a85cd6f328307d81a84888265ce0beb8673bf77d7c4a15854f6816b85fb3013f30b8c820a98cf87348afcf63aa43840
7
+ data.tar.gz: 4cde6833aa49741a759c726e75fdfcfacd14ccc9e48ce91ded6b1aa3247c41c57fbbc5a1f7340403df1ef2016e951bad41e27d6f10dfa039cac19f68a9f06437
data/Gemfile CHANGED
@@ -1,20 +1,4 @@
1
- source :rubygems
2
-
3
- gem "sinatra", "1.2.6"
4
- gem 'haml', '~>3.0'
5
- gem 'sass', '~>3.0'
6
- gem "jmx", '0.9'
7
- gem 'json', '1.5.1'
8
- gem 'torquebox', '~> 2.0'
9
- gem 'tobias-sinatra-url-for', '0.2.1'
10
- gem 'rack-accept', '~>0.4.0'
11
- gem 'torquebox-webconsole', '0.1.0'
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
12
4
 
13
- # These are commented out to keep them out of Gemfile.lock
14
- #group :development do
15
- #gem 'thor', '0.14.6'
16
- #gem 'watchr', '~>0.7'
17
- #gem 'rspec', '~>2.6.0'
18
- #gem 'rack-test', '~>0.6.0'
19
- #gem 'rake'
20
- #end
data/README.md CHANGED
@@ -20,9 +20,9 @@ available from BackStage are also available from `/jmx-console` (with
20
20
  the exception of queue message browsing), but are more accessible in
21
21
  BackStage.
22
22
 
23
- *Note:* The master branch now only supports TorqueBox 2.x. If you need
24
- BackStage for TorqueBox 1.x, install version 0.5.4 of the gem, or use
25
- the tag `v0.5.4` from this repo.
23
+ *Note:* The master branch now only supports TorqueBox 2.x and 3.x. If
24
+ you need BackStage for TorqueBox 1.x, install version 0.5.4 of the
25
+ gem, or use the tag `v0.5.4` from this repo.
26
26
 
27
27
  ## Installation ##
28
28
 
@@ -34,6 +34,17 @@ application source.
34
34
  You can install it via:
35
35
 
36
36
  jruby -S gem install torquebox-backstage
37
+
38
+ By default, the gem command will try to install the latest versions of
39
+ the TorqueBox gems that match the pessimistic version requirements of
40
+ backstage. If you are installing backstage into a TorqueBox that is
41
+ older than the latest release, you'll need to update your gem command
42
+ to the latest version and use the `--conservative` flag when
43
+ installing (the update is necessary due to a bug in older rubygems
44
+ versions that prevents `--conservative` from working properly):
45
+
46
+ jruby -S gem update --system
47
+ jruby -S gem install torquebox-backstage --conservative
37
48
 
38
49
  Deploy backstage using the `backstage` command. You can deploy with security
39
50
  disabled: `jruby -S backstage deploy`
@@ -150,7 +161,7 @@ crew.
150
161
 
151
162
  ## License ##
152
163
 
153
- Copyright 2011 Red Hat, Inc.
164
+ Copyright 2011-2013 Red Hat, Inc.
154
165
 
155
166
  Licensed under the Apache Software License version 2. See
156
167
  http://www.apache.org/licenses/LICENSE-2.0 for details.
data/TORQUEBOX_VERSION CHANGED
@@ -1 +1 @@
1
- 2.x
1
+ 2.x - 3.x
data/VERSION CHANGED
@@ -1,3 +1,3 @@
1
- 1.0.7
1
+ 1.1.0
2
2
 
3
3
 
data/lib/helpers.rb CHANGED
@@ -16,7 +16,6 @@
16
16
  require 'logger'
17
17
  require 'util'
18
18
  require 'authentication'
19
- require 'sinatra/url_for'
20
19
 
21
20
  module Backstage
22
21
  def self.jboss_log_dir
@@ -46,11 +45,9 @@ module Backstage
46
45
 
47
46
  helpers do
48
47
  include Backstage::Authentication
49
- include Sinatra::UrlForHelper
50
48
 
51
- def json_url_for(fragment, options = { })
52
- options[:format] = 'json'
53
- url_for( fragment, :full, options )
49
+ def json_url_for(fragment)
50
+ url(fragment) + "?format=json"
54
51
  end
55
52
 
56
53
  def object_path(object)
@@ -71,11 +68,11 @@ module Backstage
71
68
  alias_method :collection_path, :object_action_or_collection_path
72
69
 
73
70
  def redirect_to(location)
74
- redirect url_for(location, :full)
71
+ redirect url(location)
75
72
  end
76
73
 
77
74
  def link_to(path, text, options = {})
78
- "<a href='#{url_for path}' class='#{options[:class]}'>#{text}</a>"
75
+ "<a href='#{url path}' class='#{options[:class]}'>#{text}</a>"
79
76
  end
80
77
 
81
78
  def paginate(total, limit = 100)
@@ -134,7 +131,7 @@ module Backstage
134
131
  def action_button(object, action, text=nil)
135
132
  text ||= action.capitalize
136
133
  accum = <<-EOF
137
- <form method="post" action="#{url_for object_action_path(object, action)}">
134
+ <form method="post" action="#{url object_action_path(object, action)}">
138
135
  <input type="submit" value="#{text}"/>
139
136
  </form>
140
137
  EOF
@@ -220,6 +217,8 @@ module Backstage
220
217
  hornetq = JMX::MBeanServer.new[javax.management.ObjectName.new( 'org.hornetq:module=Core,type=Server' )]
221
218
  versions['HornetQ']['clustered'] = hornetq.clustered if versions['HornetQ'] && hornetq
222
219
  versions
220
+ rescue JMX::NoSuchBeanError
221
+ versions
223
222
  end
224
223
 
225
224
  def hornetq_cluster_info
@@ -0,0 +1,70 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{torquebox-backstage}
5
+ s.version = IO.read(File.join(File.dirname(__FILE__), 'VERSION')).strip
6
+ s.date = Time.now.strftime('%Y-%m-%d')
7
+ s.authors = ["Tobias Crawley", "David Glassborow", "Penumbra Shadow"]
8
+
9
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
10
+ s.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.}
11
+ s.email = %q{tcrawley@redhat.com}
12
+ s.executables = ["backstage"]
13
+ s.extra_rdoc_files = [
14
+ "README.md",
15
+ "TODO"
16
+ ]
17
+ s.files = Dir[
18
+ "backstage.rb",
19
+ "config.ru",
20
+ "torquebox-backstage.gemspec",
21
+ "[A-Z]*",
22
+ "config/**/*",
23
+ "lib/**/*",
24
+ "public/**/*",
25
+ "views/**/*"
26
+ ] - %w{ Gemfile.lock }
27
+
28
+ s.homepage = %q{http://github.com/torquebox/backstage}
29
+ s.licenses = ["AL"]
30
+ s.require_paths = ["lib"]
31
+ s.rubygems_version = %q{1.5.1}
32
+ s.summary = %q{BackStage - Queue/Topic/Job/etc viewer for TorqueBox}
33
+
34
+
35
+ deps = [
36
+ [%q<sinatra>, "= 1.4.4"],
37
+ [%q<haml>, "~> 3.0"],
38
+ [%q<sass>, "~> 3.1.2"],
39
+ [%q<jmx>, "= 0.9"],
40
+ [%q<json>, "= 1.8.1"],
41
+ [%q<torquebox>, ">= 2.0", "< 5.0"],
42
+ [%q<rack-accept>, "~> 0.4.4"],
43
+ [%q<thor>, "= 0.14.6"],
44
+ [%q<bundler>, "~> 1.0"],
45
+ [%q<torquebox-webconsole>, '0.2.0']
46
+ ]
47
+
48
+ if s.respond_to? :specification_version then
49
+ s.specification_version = 3
50
+
51
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
52
+ deps.each do |name, version, dev|
53
+ if dev
54
+ s.add_development_dependency(name, [version])
55
+ else
56
+ s.add_runtime_dependency(name, [version])
57
+ end
58
+ end
59
+ else
60
+ deps.each do |name, version|
61
+ s.add_dependency(name, [version])
62
+ end
63
+ end
64
+ else
65
+ deps.each do |name, version|
66
+ s.add_dependency(name, [version])
67
+ end
68
+ end
69
+ end
70
+
data/views/layout.haml CHANGED
@@ -1,11 +1,11 @@
1
1
  !!!
2
2
  %html
3
3
  %title TorqueBox::BackStage
4
- %link{:rel=>"stylesheet", :type=>"text/css", :href=>url_for('/css/html5reset.css')}
5
- %link{:rel=>"stylesheet", :type=>"text/css", :href=>url_for('/css/style.css')}
6
- %link{:rel=>"shortcut icon", :type=>"image/png", :href=>url_for('/favicon.png')}
7
- %script{:type=>"text/javascript", :src=> url_for('/jquery.min.js')}
8
- %script{:type=>"text/javascript", :src=> url_for('/app.js')}
4
+ %link{:rel=>"stylesheet", :type=>"text/css", :href=>url('/css/html5reset.css')}
5
+ %link{:rel=>"stylesheet", :type=>"text/css", :href=>url('/css/style.css')}
6
+ %link{:rel=>"shortcut icon", :type=>"image/png", :href=>url('/favicon.png')}
7
+ %script{:type=>"text/javascript", :src=> url('/jquery.min.js')}
8
+ %script{:type=>"text/javascript", :src=> url('/app.js')}
9
9
  %body{:class => class_for_body}
10
10
  #header
11
11
  %h1 TorqueBox::Backstage
data/views/logs/show.haml CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  #log
8
8
  #ajax-spinner{:style => 'display: none'}
9
- %img{:src => url_for('/ajax-loader.gif')}
9
+ %img{:src => url('/ajax-loader.gif')}
10
10
  %pre#log_output
11
11
  Fetching log...
12
12
 
@@ -18,7 +18,7 @@
18
18
  :javascript
19
19
  function evaluate_remote() {
20
20
  $.post(
21
- '#{url_for( object_action_path( @object, :evaluate ) )}',
21
+ '#{url( object_action_path( @object, :evaluate ) )}',
22
22
  $('#script_form').serialize(),
23
23
  function( response ) {
24
24
  result = response.result
metadata CHANGED
@@ -1,334 +1,267 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: torquebox-backstage
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 0
8
- - 7
9
- version: 1.0.7
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.0
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - Tobias Crawley
13
8
  - David Glassborow
14
9
  - Penumbra Shadow
15
- autorequire:
10
+ autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
-
19
- date: 2012-09-12 00:00:00 -04:00
20
- default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
13
+ date: 2013-11-26 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
23
16
  name: sinatra
17
+ version_requirements: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - '='
20
+ - !ruby/object:Gem::Version
21
+ version: 1.4.4
22
+ requirement: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 1.4.4
24
27
  prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
26
- requirements:
27
- - - "="
28
- - !ruby/object:Gem::Version
29
- segments:
30
- - 1
31
- - 2
32
- - 6
33
- version: 1.2.6
34
28
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
29
+ - !ruby/object:Gem::Dependency
37
30
  name: haml
38
- prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
40
- requirements:
31
+ version_requirements: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ~>
34
+ - !ruby/object:Gem::Version
35
+ version: '3.0'
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
41
38
  - - ~>
42
- - !ruby/object:Gem::Version
43
- segments:
44
- - 3
45
- - 0
46
- version: "3.0"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.0'
41
+ prerelease: false
47
42
  type: :runtime
48
- version_requirements: *id002
49
- - !ruby/object:Gem::Dependency
43
+ - !ruby/object:Gem::Dependency
50
44
  name: sass
51
- prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
53
- requirements:
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
54
47
  - - ~>
55
- - !ruby/object:Gem::Version
56
- segments:
57
- - 3
58
- - 1
59
- - 2
48
+ - !ruby/object:Gem::Version
60
49
  version: 3.1.2
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 3.1.2
55
+ prerelease: false
61
56
  type: :runtime
62
- version_requirements: *id003
63
- - !ruby/object:Gem::Dependency
57
+ - !ruby/object:Gem::Dependency
64
58
  name: jmx
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - '='
62
+ - !ruby/object:Gem::Version
63
+ version: '0.9'
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: '0.9'
65
69
  prerelease: false
66
- requirement: &id004 !ruby/object:Gem::Requirement
67
- requirements:
68
- - - "="
69
- - !ruby/object:Gem::Version
70
- segments:
71
- - 0
72
- - 9
73
- version: "0.9"
74
70
  type: :runtime
75
- version_requirements: *id004
76
- - !ruby/object:Gem::Dependency
71
+ - !ruby/object:Gem::Dependency
77
72
  name: json
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - '='
76
+ - !ruby/object:Gem::Version
77
+ version: 1.8.1
78
+ requirement: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '='
81
+ - !ruby/object:Gem::Version
82
+ version: 1.8.1
78
83
  prerelease: false
79
- requirement: &id005 !ruby/object:Gem::Requirement
80
- requirements:
81
- - - "="
82
- - !ruby/object:Gem::Version
83
- segments:
84
- - 1
85
- - 5
86
- - 1
87
- version: 1.5.1
88
84
  type: :runtime
89
- version_requirements: *id005
90
- - !ruby/object:Gem::Dependency
85
+ - !ruby/object:Gem::Dependency
91
86
  name: torquebox
87
+ version_requirements: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - '>='
90
+ - !ruby/object:Gem::Version
91
+ version: '2.0'
92
+ requirement: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '2.0'
92
97
  prerelease: false
93
- requirement: &id006 !ruby/object:Gem::Requirement
94
- requirements:
95
- - - ~>
96
- - !ruby/object:Gem::Version
97
- segments:
98
- - 2
99
- - 0
100
- version: "2.0"
101
- type: :runtime
102
- version_requirements: *id006
103
- - !ruby/object:Gem::Dependency
104
- name: tobias-sinatra-url-for
105
- prerelease: false
106
- requirement: &id007 !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "="
109
- - !ruby/object:Gem::Version
110
- segments:
111
- - 0
112
- - 2
113
- - 1
114
- version: 0.2.1
115
- type: :runtime
116
- version_requirements: *id007
117
- - !ruby/object:Gem::Dependency
98
+ type: :development
99
+ - !ruby/object:Gem::Dependency
118
100
  name: rack-accept
119
- prerelease: false
120
- requirement: &id008 !ruby/object:Gem::Requirement
121
- requirements:
101
+ version_requirements: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ~>
104
+ - !ruby/object:Gem::Version
105
+ version: 0.4.4
106
+ requirement: !ruby/object:Gem::Requirement
107
+ requirements:
122
108
  - - ~>
123
- - !ruby/object:Gem::Version
124
- segments:
125
- - 0
126
- - 4
127
- - 4
109
+ - !ruby/object:Gem::Version
128
110
  version: 0.4.4
111
+ prerelease: false
129
112
  type: :runtime
130
- version_requirements: *id008
131
- - !ruby/object:Gem::Dependency
113
+ - !ruby/object:Gem::Dependency
132
114
  name: thor
133
- prerelease: false
134
- requirement: &id009 !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "="
137
- - !ruby/object:Gem::Version
138
- segments:
139
- - 0
140
- - 14
141
- - 6
115
+ version_requirements: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - '='
118
+ - !ruby/object:Gem::Version
119
+ version: 0.14.6
120
+ requirement: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '='
123
+ - !ruby/object:Gem::Version
142
124
  version: 0.14.6
125
+ prerelease: false
143
126
  type: :runtime
144
- version_requirements: *id009
145
- - !ruby/object:Gem::Dependency
127
+ - !ruby/object:Gem::Dependency
146
128
  name: bundler
147
- prerelease: false
148
- requirement: &id010 !ruby/object:Gem::Requirement
149
- requirements:
129
+ version_requirements: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ~>
132
+ - !ruby/object:Gem::Version
133
+ version: '1.0'
134
+ requirement: !ruby/object:Gem::Requirement
135
+ requirements:
150
136
  - - ~>
151
- - !ruby/object:Gem::Version
152
- segments:
153
- - 1
154
- - 0
155
- version: "1.0"
137
+ - !ruby/object:Gem::Version
138
+ version: '1.0'
139
+ prerelease: false
156
140
  type: :runtime
157
- version_requirements: *id010
158
- - !ruby/object:Gem::Dependency
141
+ - !ruby/object:Gem::Dependency
159
142
  name: torquebox-webconsole
143
+ version_requirements: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - '='
146
+ - !ruby/object:Gem::Version
147
+ version: 0.2.0
148
+ requirement: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - '='
151
+ - !ruby/object:Gem::Version
152
+ version: 0.2.0
160
153
  prerelease: false
161
- requirement: &id011 !ruby/object:Gem::Requirement
162
- requirements:
163
- - - "="
164
- - !ruby/object:Gem::Version
165
- segments:
166
- - 0
167
- - 1
168
- - 0
169
- version: 0.1.0
170
154
  type: :runtime
171
- version_requirements: *id011
172
- - !ruby/object:Gem::Dependency
173
- name: watchr
174
- prerelease: false
175
- requirement: &id012 !ruby/object:Gem::Requirement
176
- requirements:
177
- - - ~>
178
- - !ruby/object:Gem::Version
179
- segments:
180
- - 0
181
- - 7
182
- version: "0.7"
183
- type: :development
184
- version_requirements: *id012
185
- - !ruby/object:Gem::Dependency
186
- name: rspec
187
- prerelease: false
188
- requirement: &id013 !ruby/object:Gem::Requirement
189
- requirements:
190
- - - ~>
191
- - !ruby/object:Gem::Version
192
- segments:
193
- - 2
194
- - 6
195
- - 0
196
- version: 2.6.0
197
- type: :development
198
- version_requirements: *id013
199
- - !ruby/object:Gem::Dependency
200
- name: rack-test
201
- prerelease: false
202
- requirement: &id014 !ruby/object:Gem::Requirement
203
- requirements:
204
- - - ~>
205
- - !ruby/object:Gem::Version
206
- segments:
207
- - 0
208
- - 6
209
- - 0
210
- version: 0.6.0
211
- type: :development
212
- version_requirements: *id014
213
155
  description: 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.
214
156
  email: tcrawley@redhat.com
215
- executables:
157
+ executables:
216
158
  - backstage
217
159
  extensions: []
218
-
219
- extra_rdoc_files:
160
+ extra_rdoc_files:
220
161
  - README.md
221
162
  - TODO
222
- files:
163
+ files:
223
164
  - backstage.rb
224
165
  - config.ru
166
+ - torquebox-backstage.gemspec
167
+ - TODO
168
+ - VERSION
169
+ - TORQUEBOX_VERSION
225
170
  - CHANGELOG.md
226
171
  - Gemfile
227
172
  - README.md
228
173
  - Rakefile
229
- - TODO
230
- - TORQUEBOX_VERSION
231
- - VERSION
232
174
  - config/torquebox.yml
233
- - lib/apps/models/app.rb
234
- - lib/apps/routes.rb
235
- - lib/apps.rb
236
- - lib/authentication.rb
237
- - lib/caches/models/cache.rb
238
- - lib/caches/routes.rb
239
- - lib/caches.rb
240
- - lib/destinations/models/destination.rb
241
- - lib/destinations/models/message.rb
242
- - lib/destinations/models/queue.rb
243
- - lib/destinations/models/topic.rb
244
- - lib/destinations/routes.rb
245
175
  - lib/destinations.rb
246
- - lib/groups/models/group.rb
247
- - lib/groups/routes.rb
176
+ - lib/message_processors.rb
248
177
  - lib/groups.rb
178
+ - lib/pools.rb
179
+ - lib/services.rb
180
+ - lib/torquebox_managed.rb
181
+ - lib/util.rb
182
+ - lib/jobs.rb
183
+ - lib/resource_helpers.rb
184
+ - lib/authentication.rb
249
185
  - lib/has_mbean.rb
186
+ - lib/caches.rb
187
+ - lib/apps.rb
250
188
  - lib/helpers.rb
251
- - lib/jobs/models/job.rb
252
- - lib/jobs/routes.rb
253
- - lib/jobs.rb
254
- - lib/logs/models/log.rb
255
- - lib/logs/routes.rb
256
189
  - lib/logs.rb
257
- - lib/message_processors/models/message_processor.rb
258
- - lib/message_processors/routes.rb
259
- - lib/message_processors.rb
260
- - lib/pools/models/pool.rb
261
- - lib/pools/routes.rb
262
- - lib/pools.rb
263
190
  - lib/resource.rb
264
- - lib/resource_helpers.rb
265
- - lib/runtimes/models/job.rb
266
- - lib/runtimes/routes.rb
267
- - lib/runtimes.rb
268
- - lib/services/models/service.rb
191
+ - lib/groups/routes.rb
192
+ - lib/groups/models/group.rb
193
+ - lib/apps/routes.rb
194
+ - lib/apps/models/app.rb
195
+ - lib/logs/routes.rb
196
+ - lib/logs/models/log.rb
197
+ - lib/pools/routes.rb
198
+ - lib/pools/models/pool.rb
199
+ - lib/message_processors/routes.rb
200
+ - lib/message_processors/models/message_processor.rb
269
201
  - lib/services/routes.rb
270
- - lib/services.rb
271
- - lib/torquebox_managed.rb
272
- - lib/util.rb
202
+ - lib/services/models/service.rb
203
+ - lib/jobs/routes.rb
204
+ - lib/jobs/models/job.rb
205
+ - lib/caches/routes.rb
206
+ - lib/caches/models/cache.rb
207
+ - lib/destinations/routes.rb
208
+ - lib/destinations/models/topic.rb
209
+ - lib/destinations/models/message.rb
210
+ - lib/destinations/models/destination.rb
211
+ - lib/destinations/models/queue.rb
273
212
  - public/ajax-loader.gif
274
- - public/app.js
275
213
  - public/favicon.png
276
214
  - public/jquery.min.js
215
+ - public/app.js
216
+ - views/layout.haml
217
+ - views/groups/index.haml
218
+ - views/groups/show.haml
277
219
  - views/apps/index.haml
278
220
  - views/apps/show.haml
221
+ - views/logs/index.haml
222
+ - views/logs/show.haml
223
+ - views/dashboard/index.haml
224
+ - views/pools/index.haml
225
+ - views/pools/show.haml
226
+ - views/message_processors/index.haml
227
+ - views/message_processors/show.haml
228
+ - views/services/index.haml
229
+ - views/services/show.haml
230
+ - views/jobs/index.haml
231
+ - views/jobs/show.haml
279
232
  - views/caches/index.haml
280
233
  - views/caches/show.haml
234
+ - views/destinations/index.haml
235
+ - views/destinations/show.haml
281
236
  - views/css/_mixins.sass
282
237
  - views/css/html5reset.sass
283
238
  - views/css/style.sass
284
- - views/dashboard/index.haml
285
- - views/destinations/index.haml
286
- - views/destinations/show.haml
287
- - views/groups/index.haml
288
- - views/groups/show.haml
289
- - views/jobs/index.haml
290
- - views/jobs/show.haml
291
- - views/layout.haml
292
- - views/logs/index.haml
293
- - views/logs/show.haml
294
- - views/message_processors/index.haml
295
- - views/message_processors/show.haml
296
- - views/messages/index.haml
297
239
  - views/messages/properties.haml
240
+ - views/messages/index.haml
298
241
  - views/messages/show.haml
299
- - views/pools/index.haml
300
- - views/pools/show.haml
301
- - views/services/index.haml
302
- - views/services/show.haml
303
- has_rdoc: true
242
+ - bin/backstage
304
243
  homepage: http://github.com/torquebox/backstage
305
- licenses:
244
+ licenses:
306
245
  - AL
307
- post_install_message:
246
+ metadata: {}
247
+ post_install_message:
308
248
  rdoc_options: []
309
-
310
- require_paths:
249
+ require_paths:
311
250
  - lib
312
- required_ruby_version: !ruby/object:Gem::Requirement
313
- requirements:
314
- - - ">="
315
- - !ruby/object:Gem::Version
316
- segments:
317
- - 0
318
- version: "0"
319
- required_rubygems_version: !ruby/object:Gem::Requirement
320
- requirements:
321
- - - ">="
322
- - !ruby/object:Gem::Version
323
- segments:
324
- - 0
325
- version: "0"
251
+ required_ruby_version: !ruby/object:Gem::Requirement
252
+ requirements:
253
+ - - '>='
254
+ - !ruby/object:Gem::Version
255
+ version: '0'
256
+ required_rubygems_version: !ruby/object:Gem::Requirement
257
+ requirements:
258
+ - - '>='
259
+ - !ruby/object:Gem::Version
260
+ version: '0'
326
261
  requirements: []
327
-
328
- rubyforge_project:
329
- rubygems_version: 1.3.6
330
- signing_key:
262
+ rubyforge_project:
263
+ rubygems_version: 2.1.9
264
+ signing_key:
331
265
  specification_version: 3
332
266
  summary: BackStage - Queue/Topic/Job/etc viewer for TorqueBox
333
267
  test_files: []
334
-
data/lib/runtimes.rb DELETED
@@ -1,19 +0,0 @@
1
- #
2
- # Copyright 2011 Red Hat, Inc.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- #
16
-
17
- require 'runtimes/models/runtime'
18
- require 'runtimes/routes'
19
-
@@ -1,45 +0,0 @@
1
- #
2
- # Copyright 2011 Red Hat, Inc.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- #
16
-
17
- module Backstage
18
- class Job
19
- include HasMBean
20
- include TorqueBoxManaged
21
- include Resource
22
-
23
- def self.filter
24
- "torquebox.jobs:*"
25
- end
26
-
27
- def self.to_hash_attributes
28
- super + [:name, :app, :app_name, :ruby_class_name, :status, :cron_expression]
29
- end
30
-
31
- def start
32
- super
33
- self
34
- end
35
-
36
- def stop
37
- super
38
- self
39
- end
40
-
41
- def available_actions
42
- status == 'Started' ? %w{stop} : %w{start}
43
- end
44
- end
45
- end
@@ -1,18 +0,0 @@
1
- #
2
- # Copyright 2011 Red Hat, Inc.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- #
16
-
17
- Backstage::Application.resource :job, :actions => [:start, :stop]
18
-