rse 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rse.rb +30 -26
- metadata +47 -42
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37030503f31b2375b3c839fa1a8badf4dfdfa084f4b590ca75709132971a4730
|
4
|
+
data.tar.gz: 9de364427b5014027fcf2c93c7bc930b2e94db3c877c7a0a541943f6214f7e29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cfdaa962a33cd09113d867dc528e46c682a8b3c588fc688a71958fb6f9b1a375360bc81a95ca4827fcca652b84528bf3f375592b7f654428c16d2a5fa4f43a4
|
7
|
+
data.tar.gz: 9e77f798d315d8b836fff1a9a06133920d2d88769b3d4bea3b032cbb2c5d2792ab9f75fc3edf05e4ae96b3ccbde9dd9a54090394f6edb7e9ca59f881173ceb1b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rse.rb
CHANGED
@@ -13,46 +13,50 @@ require 'spspublog_drb_client'
|
|
13
13
|
class Rse
|
14
14
|
using ColouredText
|
15
15
|
|
16
|
-
def initialize(package_basepath=nil, host: '', port: '61000',
|
17
|
-
debug: false, loghost:
|
18
|
-
reghost:
|
16
|
+
def initialize(package_basepath=nil, host: '0.0.0.0', port: '61000',
|
17
|
+
debug: false, loghost: nil, logport: '9090',
|
18
|
+
reghost: nil, spshost: nil, app_rsf: nil)
|
19
19
|
|
20
20
|
@host, @port, @debug = host, port, debug
|
21
21
|
|
22
22
|
puts 'before spspublog'.info if @debug
|
23
|
-
log = SPSPubLogDRbClient.new
|
23
|
+
log = loghost ? SPSPubLogDRbClient.new(host: loghost, port: logport) : nil
|
24
24
|
|
25
25
|
puts 'before reg'.info if @debug
|
26
|
-
reg = RemoteDwsRegistry.new
|
26
|
+
reg = reghost ? RemoteDwsRegistry.new(domain: reghost) : nil
|
27
27
|
|
28
28
|
@rs = rs = RSFServices.new reg, package_basepath: package_basepath,
|
29
29
|
log: log, app_rsf: app_rsf, debug: debug
|
30
30
|
|
31
|
-
sps = SPSSub.new
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
31
|
+
sps = spshost ? SPSSub.new(host: spshost) : nil
|
32
|
+
|
33
|
+
if sps then
|
34
|
+
|
35
|
+
Thread.new do
|
36
|
+
sps.subscribe(topic: 'rse/#') do |msg,topic|
|
37
|
+
a = topic.split('/')[1..-1]
|
38
|
+
if a.length < 2 then
|
39
|
+
begin
|
40
|
+
r = rs.run_job(a.first, msg)
|
41
|
+
rescue
|
42
|
+
sps.notice 'rse_result: no job ' + a.first
|
43
|
+
end
|
44
|
+
sps.notice 'rse_result: ' + r.inspect
|
45
|
+
else
|
46
|
+
package, job = a
|
47
|
+
begin
|
48
|
+
r = rs.run_job(package, job, {}, msg)
|
49
|
+
rescue
|
50
|
+
sps.notice 'rse_result: no job ' + a.first
|
51
|
+
end
|
52
|
+
sps.notice "rse_result/%s/%s: %s" % [package, job, r.inspect ]
|
41
53
|
end
|
42
|
-
sps.notice 'rse_result: ' + r.inspect
|
43
|
-
else
|
44
|
-
package, job = a
|
45
|
-
begin
|
46
|
-
r = rs.run_job(package, job, {}, msg)
|
47
|
-
rescue
|
48
|
-
sps.notice 'rse_result: no job ' + a.first
|
49
|
-
end
|
50
|
-
sps.notice "rse_result/%s/%s: %s" % [package, job, r.inspect ]
|
51
54
|
end
|
52
55
|
end
|
53
|
-
end
|
54
56
|
|
55
|
-
|
57
|
+
@rs.services['sps'] = sps
|
58
|
+
|
59
|
+
end
|
56
60
|
|
57
61
|
puts 'ready'
|
58
62
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,27 +10,32 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
13
|
+
MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
|
14
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMTkwMzI1MjIwNjI1WhcN
|
15
|
+
MjAwMzI0MjIwNjI1WjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
|
16
|
+
cnRzb24vREM9ZXUwggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQDSmdqb
|
17
|
+
vlxlGfBzluHMGj/iMbNgP1RHxRerWYNFm4RULDYmEgzziyDvmSdiIJhrmUTQ9kAu
|
18
|
+
5/1dG5Qv/DexeUIAGeDcNQer+1WqY5szZwXlg+dmmqRNjZTvtiCt+Nv8srSdY2+V
|
19
|
+
Ba36+CuyuZNTJIlQUlG5+byT3+R29ZNqP5fGfBIrpnK70HDqcpn9+63HwbVnUXeV
|
20
|
+
aOqh+6FSU1eoR+GyLeG4kOVndEZlTUrn9FXOeTU81dVSkXbWat8UfJXb7ldIb4Ot
|
21
|
+
LkLbcnQJLVco3zwp2kus3y6lYBFdFC/xgV3jq7RtrPbgZFbG/uMQcGIZ96++Zm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CERTIFICATE-----
|
33
|
-
date: 2019-
|
38
|
+
date: 2019-03-25 00:00:00.000000000 Z
|
34
39
|
dependencies:
|
35
40
|
- !ruby/object:Gem::Dependency
|
36
41
|
name: sps-sub
|
@@ -41,7 +46,7 @@ dependencies:
|
|
41
46
|
version: '0.3'
|
42
47
|
- - ">="
|
43
48
|
- !ruby/object:Gem::Version
|
44
|
-
version: 0.3.
|
49
|
+
version: 0.3.7
|
45
50
|
type: :runtime
|
46
51
|
prerelease: false
|
47
52
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -51,67 +56,67 @@ dependencies:
|
|
51
56
|
version: '0.3'
|
52
57
|
- - ">="
|
53
58
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.3.
|
59
|
+
version: 0.3.7
|
55
60
|
- !ruby/object:Gem::Dependency
|
56
61
|
name: rsf_services
|
57
62
|
requirement: !ruby/object:Gem::Requirement
|
58
63
|
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0.7'
|
62
64
|
- - ">="
|
63
65
|
- !ruby/object:Gem::Version
|
64
|
-
version: 0.
|
66
|
+
version: 0.8.0
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0.8'
|
65
70
|
type: :runtime
|
66
71
|
prerelease: false
|
67
72
|
version_requirements: !ruby/object:Gem::Requirement
|
68
73
|
requirements:
|
69
|
-
- - "~>"
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: '0.7'
|
72
74
|
- - ">="
|
73
75
|
- !ruby/object:Gem::Version
|
74
|
-
version: 0.
|
76
|
+
version: 0.8.0
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0.8'
|
75
80
|
- !ruby/object:Gem::Dependency
|
76
81
|
name: remote_dwsregistry
|
77
82
|
requirement: !ruby/object:Gem::Requirement
|
78
83
|
requirements:
|
79
84
|
- - "~>"
|
80
85
|
- !ruby/object:Gem::Version
|
81
|
-
version: '0.
|
86
|
+
version: '0.4'
|
82
87
|
- - ">="
|
83
88
|
- !ruby/object:Gem::Version
|
84
|
-
version: 0.
|
89
|
+
version: 0.4.1
|
85
90
|
type: :runtime
|
86
91
|
prerelease: false
|
87
92
|
version_requirements: !ruby/object:Gem::Requirement
|
88
93
|
requirements:
|
89
94
|
- - "~>"
|
90
95
|
- !ruby/object:Gem::Version
|
91
|
-
version: '0.
|
96
|
+
version: '0.4'
|
92
97
|
- - ">="
|
93
98
|
- !ruby/object:Gem::Version
|
94
|
-
version: 0.
|
99
|
+
version: 0.4.1
|
95
100
|
- !ruby/object:Gem::Dependency
|
96
101
|
name: spspublog_drb_client
|
97
102
|
requirement: !ruby/object:Gem::Requirement
|
98
103
|
requirements:
|
99
|
-
- - ">="
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: 0.1.0
|
102
104
|
- - "~>"
|
103
105
|
- !ruby/object:Gem::Version
|
104
106
|
version: '0.1'
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 0.1.1
|
105
110
|
type: :runtime
|
106
111
|
prerelease: false
|
107
112
|
version_requirements: !ruby/object:Gem::Requirement
|
108
113
|
requirements:
|
109
|
-
- - ">="
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
version: 0.1.0
|
112
114
|
- - "~>"
|
113
115
|
- !ruby/object:Gem::Version
|
114
116
|
version: '0.1'
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: 0.1.1
|
115
120
|
description:
|
116
121
|
email: james@jamesrobertson.eu
|
117
122
|
executables: []
|
@@ -138,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
143
|
- !ruby/object:Gem::Version
|
139
144
|
version: '0'
|
140
145
|
requirements: []
|
141
|
-
rubygems_version: 3.0.
|
146
|
+
rubygems_version: 3.0.1
|
142
147
|
signing_key:
|
143
148
|
specification_version: 4
|
144
149
|
summary: Executes Ruby jobs (using the rsf_services gem) from a DRb server.
|
metadata.gz.sig
CHANGED
Binary file
|